Browse Source

Avoid a small error in admin

pull/1/head
Fabio Comuni 9 years ago
parent
commit
b38d6d97c3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mod/admin.php

+ 1
- 1
mod/admin.php 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);


Loading…
Cancel
Save