X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FPager.php;h=a5bc97b8504433ea8ac736666cecf128c63cfeaf;hb=946d8b80b084bf98112f4421769750fe6a3e0888;hp=26bb54c737d9e7e62ae5b68f137729bbe953efbc;hpb=060ea8f8e944292abc945b136c66cb7ccabd4fc1;p=civicrm-core.git diff --git a/CRM/Utils/Pager.php b/CRM/Utils/Pager.php index 26bb54c737..a5bc97b850 100644 --- a/CRM/Utils/Pager.php +++ b/CRM/Utils/Pager.php @@ -83,10 +83,10 @@ class CRM_Utils_Pager extends Pager_Sliding { 'last' => $this->getLastPageLink(), 'currentPage' => $this->getCurrentPageID(), 'numPages' => $this->numPages(), - 'csvString' => CRM_Utils_Array::value('csvString', $params), - 'status' => CRM_Utils_Array::value('status', $params), - 'buttonTop' => CRM_Utils_Array::value('buttonTop', $params), - 'buttonBottom' => CRM_Utils_Array::value('buttonBottom', $params), + 'csvString' => $params['csvString'] ?? NULL, + 'status' => $params['status'] ?? NULL, + 'buttonTop' => $params['buttonTop'] ?? NULL, + 'buttonBottom' => $params['buttonBottom'] ?? NULL, 'currentLocation' => $this->getCurrentLocation(), ]; @@ -240,7 +240,7 @@ class CRM_Utils_Pager extends Pager_Sliding { */ public function getCurrentLocation() { $config = CRM_Core_Config::singleton(); - $path = CRM_Utils_Array::value($config->userFrameworkURLVar, $_GET); + $path = $_GET[$config->userFrameworkURLVar] ?? NULL; return CRM_Utils_System::url($path, CRM_Utils_System::getLinksUrl(self::PAGE_ID, FALSE, TRUE), FALSE, NULL, FALSE) . $this->getCurrentPageID(); }