[NFC] minor form cleanup.
[civicrm-core.git] / CRM / Utils / Pager.php
index e2c4c26e7a81bf3a1c0b7111959497fd4df0bade..a5bc97b8504433ea8ac736666cecf128c63cfeaf 100644 (file)
@@ -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();
   }