r60739 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60738‎ | r60739 | r60740 >
Date:18:52, 6 January 2010
Author:maxsem
Status:ok
Tags:
Comment:
Fixed insane selectField() usage from r58322
Modified paths:
  • /trunk/phase3/includes/search/SearchSqlite.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/search/SearchSqlite.php
@@ -45,8 +45,11 @@
4646 */
4747 function fulltextSearchSupported() {
4848 if ( self::$fulltextSupported === null ) {
49 - $res = $this->db->selectField( 'updatelog', 'ul_key', array( 'ul_key' => 'fts3' ), __METHOD__ );
50 - self::$fulltextSupported = $res && $this->db->numRows( $res ) > 0;
 49+ self::$fulltextSupported = $this->db->selectField(
 50+ 'updatelog',
 51+ 'ul_key',
 52+ array( 'ul_key' => 'fts3' ),
 53+ __METHOD__ ) !== FALSE;
5154 }
5255 return self::$fulltextSupported;
5356 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r58322Merge SQLite search from branches/sqlite/ to trunkmaxsem16:19, 29 October 2009

Status & tagging log