From: Sam Reed Date: Thu, 2 Sep 2010 20:11:01 +0000 (+0000) Subject: Followup r72200, cast return to bool X-Git-Tag: 1.31.0-rc.0~35221 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=17d960ca8c6ce2aec2d153c6f0e1344f8828f82c;p=lhc%2Fweb%2Fwiklou.git Followup r72200, cast return to bool --- 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,