Skip to content
Snippets Groups Projects
Commit ef597b45 authored by lobo's avatar lobo
Browse files

CRM-13731 - ManageEvents - after editing event template (w/no start date) error is generated

parent f6e68678
Branches
Tags
No related merge requests found
......@@ -460,7 +460,10 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent
}
}
if ($values['registration_start_date'] && $values['registration_end_date']) {
if (
isset($values['registration_start_date']) &&
isset($values['registration_end_date'])
) {
$start = CRM_Utils_Date::processDate($values['registration_start_date']);
$end = CRM_Utils_Date::processDate($values['registration_end_date']);
if ($end < $start) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment