diff --git a/inc/auth/mysql.class.php b/inc/auth/mysql.class.php index 9bb9fa1dfc2b946c98a129cd3978f480e0809ad4..ebc3df90224b687ccfb8b6039e07f6a32db63df7 100644 --- a/inc/auth/mysql.class.php +++ b/inc/auth/mysql.class.php @@ -489,7 +489,7 @@ class auth_mysql extends auth_basic { $sql = str_replace('%{user}',$this->_escape($user),$this->cnf['getGroups']); $result = $this->_queryDB($sql); - if(count($result)) { + if($result !== false && count($result)) { foreach($result as $row) $groups[] = $row['group']; } @@ -610,7 +610,7 @@ class auth_mysql extends auth_basic { function _getUserInfo($user){ $sql = str_replace('%{user}',$this->_escape($user),$this->cnf['getUserInfo']); $result = $this->_queryDB($sql); - if(count($result)) { + if($result !== false && count($result)) { $info = $result[0]; $info['grps'] = $this->_getGroups($user); return $info;