http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72222
Revision: 72222
Author: reedy
Date: 2010-09-02 20:11:01 +0000 (Thu, 02 Sep 2010)
Log Message:
-----------
Followup r72200, cast return to bool
Modified Paths:
--------------
trunk/phase3/includes/Title.php
Modified: trunk/phase3/includes/Title.php
===================================================================
--- trunk/phase3/includes/Title.php 2010-09-02 20:10:55 UTC (rev 72221)
+++ trunk/phase3/includes/Title.php 2010-09-02 20:11:01 UTC (rev 72222)
@@ -3539,7 +3539,7 @@
*/
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,
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs