dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4b5ffe
)
And for good measure, force the count to an integer. Sigh... *stab php*
author
Brion Vibber
<brion@users.mediawiki.org>
Tue, 28 Jul 2009 20:49:50 +0000
(20:49 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Tue, 28 Jul 2009 20:49:50 +0000
(20:49 +0000)
includes/SearchMySQL.php
patch
|
blob
|
history
diff --git
a/includes/SearchMySQL.php
b/includes/SearchMySQL.php
index
24ee4df
..
a0ec927
100644
(file)
--- 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();
}