----------------------------------------
* CRM-13352: After disabling some Event Types I don't need, get undefined index error in Event Template browse()
http://issues.civicrm.org/jira/browse/CRM-13352
}
//get event type.
- $allEventTemplates[$eventTemplate->id]['event_type'] = $eventTypes[$eventTemplate->event_type_id];
+ if (isset($eventTypes[$eventTemplate->event_type_id])) {
+ $allEventTemplates[$eventTemplate->id]['event_type'] = $eventTypes[$eventTemplate->event_type_id];
+ }
//form all action links
$action = array_sum(array_keys($this->links()));