Followup r72200, cast return to bool
authorSam Reed <reedy@users.mediawiki.org>
Thu, 2 Sep 2010 20:11:01 +0000 (20:11 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 2 Sep 2010 20:11:01 +0000 (20:11 +0000)
includes/Title.php

index d741726..e7a8351 100644 (file)
@@ -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,