summaryrefslogtreecommitdiff
path: root/inc/auth/mysql.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/auth/mysql.class.php')
-rw-r--r--inc/auth/mysql.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/auth/mysql.class.php b/inc/auth/mysql.class.php
index 9bb9fa1df..ebc3df902 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;