<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
class CRM_Event_Form_SearchEvent extends CRM_Core_Form {
+ /**
+ * @return array
+ */
function setDefaultValues() {
$defaults = array();
$defaults['eventsByDates'] = 0;
$this->_showHide = new CRM_Core_ShowHideBlocks();
- if (!CRM_Utils_Array::value('eventsByDates', $defaults)) {
+ if (empty($defaults['eventsByDates'])) {
$this->_showHide->addHide('id_fromToDates');
}