From 17d960ca8c6ce2aec2d153c6f0e1344f8828f82c Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 2 Sep 2010 20:11:01 +0000 Subject: [PATCH] Followup r72200, cast return to bool --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index d741726ece..e7a83514cc 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -3539,7 +3539,7 @@ class Title { */ public function isInCategory( $category ) { $dbr = wfGetDB( DB_SLAVE ); - return $dbr->selectRow( 'categorylinks', '*', + return (bool)$dbr->selectRow( 'categorylinks', '*', array( 'cl_from' => $this->getArticleId(), 'cl_to' => $category, -- 2.20.1