*/
/**
- *
- * @package CRM
- * @copyright CiviCRM LLC https://civicrm.org/licensing
- * $Id$
- *
+ * Class CRM_Event_StateMachine_Search
*/
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) {
*/
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');
}