From 5efc507e22f98223c729df98826305f4463a68ae Mon Sep 17 00:00:00 2001 From: Web Access Date: Thu, 11 Jun 2015 21:41:08 +0530 Subject: [PATCH] CRM-16652 Undefined index formatting_* --- CRM/Event/BAO/Event.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index 84c64b4bfa..4939c93aac 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -1293,6 +1293,7 @@ WHERE civicrm_event.is_active = 1 $profileIds = $id; } + $val = $groupTitles = NULL; foreach ($profileIds as $gid) { if (CRM_Core_BAO_UFGroup::filterUFGroups($gid, $cid)) { $values = array(); @@ -1707,7 +1708,7 @@ WHERE id = $cfID $values[$index] = CRM_Utils_Date::customFormat(CRM_Utils_Date::format($params[$name])); } else { - $values[$index] = $params[$name]; + $values[$index] = CRM_Utils_Array::value($name, $params); } } } -- 2.25.1