X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FStateMachine%2FSearch.php;h=86b60a97e0a81d6d8a3c743459283164d52d7666;hb=8d557f6ba0ba874b4a8efe1018ec64a94427f34a;hp=f73e871b0f4ff6f99d407d123ade8a1b9f1e8980;hpb=3cfdbf479f28dde3f72458e345b6c003a9db01e2;p=civicrm-core.git diff --git a/CRM/Contribute/StateMachine/Search.php b/CRM/Contribute/StateMachine/Search.php index f73e871b0f..86b60a97e0 100644 --- a/CRM/Contribute/StateMachine/Search.php +++ b/CRM/Contribute/StateMachine/Search.php @@ -68,7 +68,7 @@ class CRM_Contribute_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'); }