Skip to content

Commit

Permalink
Merge pull request #44 from kayakr/2.x
Browse files Browse the repository at this point in the history
#43 Add isset() to prevent PHP warning when no plugins enabled
  • Loading branch information
alxp authored Mar 13, 2024
2 parents 4dcbfc2 + 5beb7ba commit 87d5248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion islandora_mirador.module
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function template_preprocess_mirador(&$variables) {

$window_config = $variables['window_config'];
foreach ($mirador_plugins as $plugin_id => $plugin_definition) {
if ($enabled_plugins[$plugin_id]) {
if (isset($enabled_plugins[$plugin_id])) {
$plugin_instance = $mirador_plugin_manager->createInstance($plugin_id);
/**
* @var Drupal\islandora_mirador\IslandoraMiradorPluginInterface
Expand Down

0 comments on commit 87d5248

Please sign in to comment.