r72222 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72221‎ | r72222 | r72223 >
Date:20:11, 2 September 2010
Author:reedy
Status:ok
Tags:
Comment:
Followup r72200, cast return to bool
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -3539,7 +3539,7 @@
35403540 */
35413541 public function isInCategory( $category ) {
35423542 $dbr = wfGetDB( DB_SLAVE );
3543 - return $dbr->selectRow( 'categorylinks', '*',
 3543+ return (bool)$dbr->selectRow( 'categorylinks', '*',
35443544 array(
35453545 'cl_from' => $this->getArticleId(),
35463546 'cl_to' => $category,

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r72200Followup r72181, condense code, use selectRow()reedy16:03, 2 September 2010

Status & tagging log