1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-14 10:34:23 +02:00

Fixes #2413 - Pagination issue with empty records.

This commit is contained in:
Cameron
2017-02-12 07:58:42 -08:00
parent 45b7f1eeb1
commit 84a4cc36e5
3 changed files with 41 additions and 2 deletions

View File

@@ -1801,6 +1801,11 @@ class e_form
public function pagination($url='', $total=0, $from=0, $perPage=10, $options=array())
{
if(empty($total))
{
return '';
}
if(!is_numeric($total))
{
return '<ul class="pager"><li><a href="'.$url.'">'.$total.'</a></li></ul>';