Skip to content
Snippets Groups Projects
Commit 6f29d682 authored by Helmo's avatar Helmo
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent 874733d5
No related branches found
No related tags found
No related merge requests found
......@@ -196,7 +196,8 @@ function _search($module, $section, $additional_sql = '', $params = ''){
if(is_file($lng_file)) include $lng_file;
// Get the real result count, without LIMIT.
$sql_real_rows = preg_replace(array('/\*/', "/ LIMIT.*$/"), array('COUNT(*) as c', ''), $sql);
$sql_real_rows = "SELECT COUNT(*) as `c` FROM ?? WHERE ".$where_clause.$authsql.$order_clause;
$result_count = $app->db->queryOneRecord($sql_real_rows, $db_table);
$result_array['cheader'] = array('title' => $category_title,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment