[NFC] Remove some more of the old cvs blocks
[civicrm-core.git] / CRM / Event / StateMachine / Search.php
index 0c76eb6cdef3a356d9fd0560e5095077adde08cc..f235ac402638c563d0a0aa3da9a6ea69228bc309 100644 (file)
  */
 
 /**
- *
- * @package CRM
- * @copyright CiviCRM LLC https://civicrm.org/licensing
- * $Id$
- *
+ * Class CRM_Event_StateMachine_Search
  */
 class CRM_Event_StateMachine_Search extends CRM_Core_StateMachine {
 
@@ -28,7 +24,7 @@ class CRM_Event_StateMachine_Search extends CRM_Core_StateMachine {
   /**
    * Class constructor.
    *
-   * @param object $controller
+   * @param CRM_Core_Controller $controller
    * @param int $action
    */
   public function __construct($controller, $action = CRM_Core_Action::NONE) {
@@ -71,7 +67,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');
     }