diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-09-23 15:52:06 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-09-23 15:52:06 +0200 |
commit | 910a0338bb296e2e51d6c9d37d0483f8d05b1c5c (patch) | |
tree | 25b771978fe226b978cde61b09e485473cc2f36c | |
parent | 93258e11701205b47b3775dbbb5f187a3a76266b (diff) | |
download | nextcloud-server-910a0338bb296e2e51d6c9d37d0483f8d05b1c5c.tar.gz nextcloud-server-910a0338bb296e2e51d6c9d37d0483f8d05b1c5c.zip |
Use fetchOne() instead of numRows() when doing a COUNT(*).
-rw-r--r-- | lib/tags.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tags.php b/lib/tags.php index 955eb3cd363..ff9f35ebc9e 100644 --- a/lib/tags.php +++ b/lib/tags.php @@ -119,7 +119,7 @@ class Tags implements \OCP\ITags { \OCP\Util::writeLog('core', __METHOD__. ', DB error: ' . \OCP\DB::getErrorMessage($result), \OCP\Util::ERROR); return false; } - return ((int)$result->numRows() === 0); + return ((int)$result->fetchOne() === 0); } catch(\Exception $e) { \OCP\Util::writeLog('core', __METHOD__.', exception: '.$e->getMessage(), \OCP\Util::ERROR); |