sforkowany z mirror/friendica
Avoid a small error in admin
rodzic
5ce6f893a6
commit
b38d6d97c3
|
@ -540,7 +540,7 @@ function admin_page_plugins(&$a){
|
||||||
}
|
}
|
||||||
|
|
||||||
$admin_form="";
|
$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");
|
@require_once("addon/$plugin/$plugin.php");
|
||||||
$func = $plugin.'_plugin_admin';
|
$func = $plugin.'_plugin_admin';
|
||||||
$func($a, $admin_form);
|
$func($a, $admin_form);
|
||||||
|
|
Ładowanie…
Reference in New Issue