aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-08-31 16:18:37 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-08-31 16:18:37 +0200
commitb38d6d97c3746203241c5ef50a8dd9f0bb0a0de0 (patch)
treef1d642aa02939bd41b129944ab16ab06c55a2947
parent5ce6f893a64984eae9685db305b8d29ae3ced509 (diff)
downloadvolse-hubzilla-b38d6d97c3746203241c5ef50a8dd9f0bb0a0de0.tar.gz
volse-hubzilla-b38d6d97c3746203241c5ef50a8dd9f0bb0a0de0.tar.bz2
volse-hubzilla-b38d6d97c3746203241c5ef50a8dd9f0bb0a0de0.zip
Avoid a small error in admin
-rw-r--r--mod/admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/admin.php b/mod/admin.php
index 7799e64ab..bbf786acb 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -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);