From b208d4d50a7be9cc7cd11f126a774e68a3386337 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 9 Dec 2020 19:12:20 +1100 Subject: [PATCH] Fix notice error on using max() with only one variable --- CRM/Utils/Pager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/Pager.php b/CRM/Utils/Pager.php index 0774e49009..c07aa8798a 100644 --- a/CRM/Utils/Pager.php +++ b/CRM/Utils/Pager.php @@ -186,7 +186,7 @@ class CRM_Utils_Pager extends Pager_Sliding { $currentPage = max((int ) @$_POST[self::PAGE_ID], 1); } elseif (isset($_POST[self::PAGE_ID_BOTTOM])) { - $currentPage = max((int ) @$_POST[self::PAGE_ID_BOTTOM]); + $currentPage = max((int ) @$_POST[self::PAGE_ID_BOTTOM], 1); } } elseif (isset($_GET[self::PAGE_ID])) { -- 2.25.1