summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 9eeef682..39420402 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -418,6 +418,9 @@
else
global $mod;
+ if(!is_array($mod))
+ return false;
+
if(isset($action) && $mod['type'] < $action)
return false;