r53900 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53899‎ | r53900 | r53901 >
Date:20:49, 28 July 2009
Author:brion
Status:ok
Tags:
Comment:
And for good measure, force the count to an integer. Sigh... *stab php*
Modified paths:
  • /trunk/phase3/includes/SearchMySQL.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SearchMySQL.php
@@ -172,7 +172,7 @@
173173 $totalResult = $this->db->query( $this->getCountQuery( $filteredTerm, $fulltext ) );
174174 $row = $totalResult->fetchObject();
175175 if( $row ) {
176 - $total = $row->c;
 176+ $total = intval( $row->c );
177177 }
178178 $totalResult->free();
179179 }

Status & tagging log