Merge pull request #16946 from civicrm/5.24
[civicrm-core.git] / CRM / Member / StateMachine / Search.php
index 9f9a9514935e3c0ce9fd34132638f15f63bc57b0..8d3ea7a3c3e101f3e6badfb926cc26461a0defaa 100644 (file)
@@ -69,7 +69,7 @@ class CRM_Member_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');
     }