From 359845f30168a494ede0fb833a2b3ecf375ea190 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 11 Jan 2016 22:51:59 +0000 Subject: [PATCH] CRM-17802 Fix default end and start times and switch to use !empty rather than isset --- CRM/Contact/Form/Search/Custom/ContributionAggregate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/Form/Search/Custom/ContributionAggregate.php b/CRM/Contact/Form/Search/Custom/ContributionAggregate.php index 1e2fe1d1ba..abafa79cc8 100644 --- a/CRM/Contact/Form/Search/Custom/ContributionAggregate.php +++ b/CRM/Contact/Form/Search/Custom/ContributionAggregate.php @@ -202,8 +202,8 @@ civicrm_contact AS contact_a {$this->_aclFrom} $clauses[] = "contrib.contact_id = contact_a.id"; $clauses[] = "contrib.is_test = 0"; - $startTime = isset($this->_formValues['start_date_time']) ? $this->_formValues['start_date_time'] : '12:00AM'; - $endTime = isset($this->_formValues['end_date_time']) ? $this->_formValues['end_date_time'] : '11:59PM'; + $startTime = !empty($this->_formValues['start_date_time']) ? $this->_formValues['start_date_time'] : '12:00:00'; + $endTime = !empty($this->_formValues['end_date_time']) ? $this->_formValues['end_date_time'] : '23:59:59'; $startDate = CRM_Utils_Date::processDate($this->_formValues['start_date'], $startTime); if ($startDate) { -- 2.25.1