From fa8214ecc99ff8de41b748edffed1f11155e53f8 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Sat, 6 Apr 2013 15:38:30 +0200 Subject: [PATCH] Use the MDB2 function to get the count result --- lib/user/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/user/database.php b/lib/user/database.php index 5eff8f199b..ea938790d2 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; } /**