From: Max Semenik Date: Wed, 6 Jan 2010 18:52:19 +0000 (+0000) Subject: Fixed insane selectField() usage from r58322 X-Git-Tag: 1.31.0-rc.0~38388 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=1eed1e3794a05540235c7d3db7338b23c378fae2;p=lhc%2Fweb%2Fwiklou.git Fixed insane selectField() usage from r58322 --- diff --git a/includes/search/SearchSqlite.php b/includes/search/SearchSqlite.php index b1cf6a6889..96580caff3 100644 --- a/includes/search/SearchSqlite.php +++ b/includes/search/SearchSqlite.php @@ -45,8 +45,11 @@ class SearchSqlite extends SearchEngine { */ function fulltextSearchSupported() { if ( self::$fulltextSupported === null ) { - $res = $this->db->selectField( 'updatelog', 'ul_key', array( 'ul_key' => 'fts3' ), __METHOD__ ); - self::$fulltextSupported = $res && $this->db->numRows( $res ) > 0; + self::$fulltextSupported = $this->db->selectField( + 'updatelog', + 'ul_key', + array( 'ul_key' => 'fts3' ), + __METHOD__ ) !== FALSE; } return self::$fulltextSupported; }