From 69ec33bc99f9ec70a3d7fdafab10b69e991f6b73 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 14 Jun 2017 13:00:53 -0700 Subject: [PATCH] Admin-UI/Form-handler Avoid PHP warning if perPage = 0. --- e107_handlers/form_handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index f2d90968b..83655b212 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -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 ''; }