From 180214e983ac65ed758716ee1920f54da214b510 Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" <lobo@civicrm.org> Date: Wed, 22 May 2013 14:12:55 -0700 Subject: [PATCH] CRM-12197 - fix notice ---------------------------------------- * CRM-12197: Overactive IDS causes test failure http://issues.civicrm.org/jira/browse/CRM-12197 --- CRM/Core/Form/Date.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Form/Date.php b/CRM/Core/Form/Date.php index af50497fe9..8229c19e28 100644 --- a/CRM/Core/Form/Date.php +++ b/CRM/Core/Form/Date.php @@ -172,7 +172,10 @@ Class CRM_Core_Form_Date { 'ending.month' => ts('From 1 Month Ago'), 'ending.week' => ts('From 1 Week Ago'), ); - $selector = array_merge($selector, $operators); + + if (is_array($operators)) { + $selector = array_merge($selector, $operators); + } $config = CRM_Core_Config::singleton(); //if fiscal year start on 1 jan then remove fiscal year task -- GitLab