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;