From a4fe0d9d47435d08741adce32f3f3e474a372eb6 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sat, 18 Feb 2012 01:14:13 +1100 Subject: [PATCH] small bug --- inc/functions.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index ea050066..7c7d1d95 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -406,7 +406,7 @@ function hasPermission($action = null, $board = null, $_mod = null) { global $config; - + if(isset($_mod)) $mod = &$_mod; else @@ -415,10 +415,13 @@ if(isset($action) && $mod['type'] < $action) return false; - if(!isset($board)) + if(!isset($board) || $config['mod']['skip_per_board']) return true; - if(!$config['mod']['skip_per_board'] && !in_array('*', $mod['boards']) && !in_array($board, $mod['boards'])) + if(!isest($mod['boards'])) + return false; + + if(!in_array('*', $mod['boards']) && !in_array($board, $mod['boards'])) return false; return true;