Commit 0be1e6cf authored by Dries's avatar Dries

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

parent 7f06d092
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment