Avoid a small error in admin

This commit is contained in:
Fabio Comuni 2011-08-31 16:18:37 +02:00
parent 5ce6f893a6
commit b38d6d97c3

View file

@ -540,7 +540,7 @@ function admin_page_plugins(&$a){
}
$admin_form="";
if (in_array($plugin, $a->plugins_admin)){
if (is_array($a->plugins_admin) && in_array($plugin, $a->plugins_admin)){
@require_once("addon/$plugin/$plugin.php");
$func = $plugin.'_plugin_admin';
$func($a, $admin_form);