CRM-16652 Undefined index formatting_*
authorWeb Access <rohan.katkar@webaccessglobal.com>
Thu, 11 Jun 2015 16:11:08 +0000 (21:41 +0530)
committerWeb Access <rohan.katkar@webaccessglobal.com>
Thu, 11 Jun 2015 16:11:08 +0000 (21:41 +0530)
CRM/Event/BAO/Event.php

index 84c64b4bfa08867af47781d43dc13f964072d222..4939c93aacfbfb52f14fd76029143be81df2a635 100644 (file)
@@ -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);
             }
           }
         }