Commit 507ec586 authored by Mike Decker's avatar Mike Decker Committed by Chris Burge
Browse files

Issue #3278161 by pookmish, Chris Burge: Check for array in config event subscriber

parent 87c365b8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -65,7 +65,10 @@ class ConfigEventsSubscriber implements EventSubscriberInterface {
      ) {

      // Remove the oembed_providers module dependency.
      if (($key = array_search('oembed_providers', $data['dependencies']['module'])) !== FALSE) {
      if (isset($data['dependencies']['module'])
        && ($key = array_search('oembed_providers', $data['dependencies']['module'])) !== FALSE
        ) {

        unset($data['dependencies']['module'][$key]);
        if (empty($data['dependencies']['module'])) {
          unset($data['dependencies']['module']);