Skip to content
Snippets Groups Projects
Commit 23d47af1 authored by IMMACULATE X's avatar IMMACULATE X Committed by Adam G-H
Browse files

Issue #3300969 by deulenko, phenaproxima: Passing null to parameter #1...

Issue #3300969 by deulenko, phenaproxima: Passing null to parameter #1 ($haystack) of type string is deprecated
parent 8e6df699
Branches
Tags 8.x-4.7
4 merge requests!28lightning_media,!27Replace webflo/drupal-core-require-dev and drupal-composer/drupal-scaffold...,!24Replace webflo/drupal-core-require-dev and drupal-composer/drupal-scaffold...,!3Revert "Add update path to create media_library form display for Instagram posts."
......@@ -384,7 +384,7 @@ function lightning_media_js_settings_alter(array &$settings) {
}
$route_name = \Drupal::routeMatch()->getRouteName();
if (strpos($route_name, 'entity_browser') === 0 && isset($settings['ajaxPageState']['libraries'])) {
if ($route_name && strpos($route_name, 'entity_browser') === 0 && isset($settings['ajaxPageState']['libraries'])) {
$libraries = explode(',', $settings['ajaxPageState']['libraries']);
// If we pretend EB's iframe library has not been previously loaded, it will
// ALWAYS be fetched from the server, preventing (in a crappy, kludgey way)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment