diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-04-06 15:38:30 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-04-06 15:38:30 +0200 |
commit | fa8214ecc99ff8de41b748edffed1f11155e53f8 (patch) | |
tree | e19f6a933d099adaf317ce2ef05b65dcc5df91e1 /lib/user/database.php | |
parent | 3213c47188cc96d84a1108261ab83a57882cd51c (diff) | |
download | nextcloud-server-fa8214ecc99ff8de41b748edffed1f11155e53f8.tar.gz nextcloud-server-fa8214ecc99ff8de41b748edffed1f11155e53f8.zip |
Use the MDB2 function to get the count result
Diffstat (limited to 'lib/user/database.php')
-rw-r--r-- | lib/user/database.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user/database.php b/lib/user/database.php index 5eff8f199be..ea938790d22 100644 --- a/lib/user/database.php +++ b/lib/user/database.php @@ -243,7 +243,7 @@ class OC_User_Database extends OC_User_Backend { OC_Log::write('core', OC_DB::getErrorMessage($result), OC_Log::ERROR); return false; } - return $result->fetchColumn() > 0; + return $result->fetchOne() > 0; } /** |