summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-09-23 15:52:06 +0200
committerThomas Tanghus <thomas@tanghus.net>2013-09-23 23:39:36 +0200
commit60bff6c5896c22b31ee7864fa48026a1de5ce3fb (patch)
tree079511341cd3ca0b44c4b684fa32e34dda0e1092 /lib
parentbe402fab53bb4eb3ce027ef9d6edb089e356a820 (diff)
downloadnextcloud-server-60bff6c5896c22b31ee7864fa48026a1de5ce3fb.tar.gz
nextcloud-server-60bff6c5896c22b31ee7864fa48026a1de5ce3fb.zip
Use fetchOne() instead of numRows() when doing a COUNT(*).
Diffstat (limited to 'lib')
-rw-r--r--lib/tags.php2
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);