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:
@@ -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>';
|
||||
|
Reference in New Issue
Block a user