Avoid a small error in admin
This commit is contained in:
parent
5ce6f893a6
commit
b38d6d97c3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue