Fix error on membership imports
[civicrm-core.git] / CRM / Member / StateMachine / Search.php
index 9f9a9514935e3c0ce9fd34132638f15f63bc57b0..dc05d7f435c5200decb35c2eea83804942dbcf50 100644 (file)
@@ -13,8 +13,6 @@
  *
  * @package CRM
  * @copyright CiviCRM LLC https://civicrm.org/licensing
- * $Id$
- *
  */
 class CRM_Member_StateMachine_Search extends CRM_Core_StateMachine {
 
@@ -69,7 +67,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');
     }