Merge pull request #17349 from eileenmcnaughton/validate
[civicrm-core.git] / CRM / Utils / Request.php
index 731e43ffafe45b431696484e437ec4894a7ebcb1..643646c2ed6265a5f6ef1fb88444cee947c6099c 100644 (file)
@@ -222,7 +222,7 @@ class CRM_Utils_Request {
    *   The desired value.
    */
   public static function retrieveComponent($attributes) {
-    $url = CRM_Utils_Array::value('action', $attributes);
+    $url = $attributes['action'] ?? NULL;
     // Whilst the following is a fallible universal test for urlencoded URLs,
     // thankfully the "action" URL has a limited and predictable form and
     // therefore this comparison is sufficient for our purposes.