From c223bee6df33b3208dbb5a7c46dbeb98eccf10ac Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Thu, 20 Jun 2013 14:47:42 +0200 Subject: fix numRows usage in core lib --- lib/vcategories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/vcategories.php') diff --git a/lib/vcategories.php b/lib/vcategories.php index 7bac6e7d4e3..84036958359 100644 --- a/lib/vcategories.php +++ b/lib/vcategories.php @@ -125,7 +125,7 @@ class OC_VCategories { OC_Log::write('core', __METHOD__. 'DB error: ' . OC_DB::getErrorMessage($result), OC_Log::ERROR); return false; } - return ($result->numRows() == 0); + return ($result->numRows() === 0); } catch(Exception $e) { OCP\Util::writeLog('core', __METHOD__.', exception: '.$e->getMessage(), OCP\Util::ERROR); -- cgit v1.2.3