Skip to content

Commit

Permalink
#43 Add isset() to prevent PHP warning when no plugins enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Hunt committed Mar 12, 2024
1 parent 4dcbfc2 commit 5beb7ba
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 5beb7ba

Please sign in to comment.