Fixing PHP warning

skala
Julio Montoya 12 years ago
parent 0634d139e7
commit fbfae945ce
  1. 9
      main/admin/settings.lib.php

@ -422,10 +422,15 @@ function store_regions() {
$installed_plugins = $plugin_obj->get_installed_plugins();
$shortlist_installed = array();
foreach ($installed_plugins as $plugin) {
$shortlist_installed[] = $plugin['subkey'];
if (!empty($installed_plugins)) {
foreach ($installed_plugins as $plugin) {
if (isset($plugin['subkey'])) {
$shortlist_installed[] = $plugin['subkey'];
}
}
}
$shortlist_installed = array_flip(array_flip($shortlist_installed));
$plugin_list = $plugin_obj->read_plugins_from_path();
foreach ($plugin_list as $plugin) {

Loading…
Cancel
Save