From: Brion Vibber Date: Tue, 28 Jul 2009 20:49:50 +0000 (+0000) Subject: And for good measure, force the count to an integer. Sigh... *stab php* X-Git-Tag: 1.31.0-rc.0~40658 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=5622644fd64c31f8466fb6204fc5ba9f37d37274;p=lhc%2Fweb%2Fwiklou.git And for good measure, force the count to an integer. Sigh... *stab php* --- diff --git a/includes/SearchMySQL.php b/includes/SearchMySQL.php index 24ee4dfa83..a0ec92711a 100644 --- a/includes/SearchMySQL.php +++ b/includes/SearchMySQL.php @@ -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(); }