And for good measure, force the count to an integer. Sigh... *stab php*
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 28 Jul 2009 20:49:50 +0000 (20:49 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 28 Jul 2009 20:49:50 +0000 (20:49 +0000)
includes/SearchMySQL.php

index 24ee4df..a0ec927 100644 (file)
@@ -172,7 +172,7 @@ class SearchMySQL extends SearchEngine {
                        $totalResult = $this->db->query( $this->getCountQuery( $filteredTerm, $fulltext ) );
                        $row = $totalResult->fetchObject();
                        if( $row ) {
-                               $total = $row->c;
+                               $total = intval( $row->c );
                        }
                        $totalResult->free();
                }