Merge pull request #16714 from christianwach/lab-1638
[civicrm-core.git] / CRM / Event / StateMachine / Search.php
index 0c76eb6cdef3a356d9fd0560e5095077adde08cc..f98de49db6e345196072c8dd6df3b6688eaed139 100644 (file)
@@ -71,7 +71,7 @@ class CRM_Event_StateMachine_Search extends CRM_Core_StateMachine {
    */
   public function taskName($controller, $formName = 'Search') {
     // total hack, check POST vars and then session to determine stuff
-    $value = CRM_Utils_Array::value('task', $_POST);
+    $value = $_POST['task'] ?? NULL;
     if (!isset($value)) {
       $value = $this->_controller->get('task');
     }