mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Admin-UI/Form-handler Avoid PHP warning if perPage = 0.
This commit is contained in:
@@ -1836,7 +1836,7 @@ class e_form
|
||||
public function pagination($url='', $total=0, $from=0, $perPage=10, $options=array())
|
||||
{
|
||||
|
||||
if(empty($total))
|
||||
if(empty($total) || empty($perPage))
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user