From 5622644fd64c31f8466fb6204fc5ba9f37d37274 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 28 Jul 2009 20:49:50 +0000 Subject: [PATCH] And for good measure, force the count to an integer. Sigh... *stab php* --- includes/SearchMySQL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.20.1