Fix historylog pagination, found by Filippos Karailanidis

This commit is contained in:
nathangray 2017-12-05 15:13:30 -07:00
parent f63e7afa3d
commit c1faf8329d

View File

@ -279,10 +279,7 @@ class History
}
$rows[] = Api\Db::strip_array_keys($row,'history_');
}
if ($mysql_calc_rows)
{
$total = $GLOBALS['egw']->db->query('SELECT FOUND_ROWS()')->fetchColumn();
}
$total = $GLOBALS['egw']->db->union($_query,__LINE__,__FILE__)->NumRows();
return $total;
}