- Issue #8735 by njivy: made the pager code ignore EOLs.

4.5.x
Dries Buytaert 2004-06-22 05:45:15 +00:00
parent 7f06d092a5
commit 0be1e6cff7
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ function pager_query($query, $limit = 10, $element = 0, $count_query = "") {
// count the total number of records in this query:
if ($count_query == "") {
$pager_total[$element] = db_result(db_query(preg_replace(array("/SELECT.*FROM/i", "/ORDER BY .*/"), array("SELECT COUNT(*) FROM", ""), $query)));
$pager_total[$element] = db_result(db_query(preg_replace(array("/SELECT.*FROM/is", "/ORDER BY .*/"), array("SELECT COUNT(*) FROM", ""), $query)));
}
else {