mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +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())
|
public function pagination($url='', $total=0, $from=0, $perPage=10, $options=array())
|
||||||
{
|
{
|
||||||
|
|
||||||
if(empty($total))
|
if(empty($total) || empty($perPage))
|
||||||
{
|
{
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user