diff --git a/main/admin/settings.php b/main/admin/settings.php index 90d4a6b4e6..c13f9bc32c 100644 --- a/main/admin/settings.php +++ b/main/admin/settings.php @@ -1,5 +1,5 @@ \n"; if (in_array($location, $plugin_info['location'])) - { - if (in_array($current_plugin, $active_plugins[$location])) - { - $checked = "checked"; - } - else - { - $checked = ''; - } + { + if (is_array($active_plugins[$location]) + && in_array($current_plugin, $active_plugins[$location])) + { + $checked = "checked"; + } + else + { + $checked = ''; + } echo ''; - } - echo "\t\t\n"; + } + echo "\t\t\n"; } /**