wrong variable
authordemeritcowboy <demeritcowboy@hotmail.com>
Tue, 25 Jan 2022 15:12:21 +0000 (10:12 -0500)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Tue, 25 Jan 2022 15:12:21 +0000 (10:12 -0500)
CRM/Event/Form/ManageEvent/Registration.php

index b412d89b5a14aa7f9428d079deba6429e1f3c0aa..f70e19f46559a9bdb1677d81dcc5fcd710079d27 100644 (file)
@@ -240,7 +240,7 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent
     if (!$this->_isTemplate) {
       $this->_tz = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $this->_id, 'event_tz');
       $tz = CRM_Core_SelectValues::timezone()[$this->_tz];
-      $this->assign('event_tz', CRM_Core_SelectValues::timezone()[$tz] ?? '<span class="error-message">' . ts('%1 No timezone set', [1 => '<i class="crm-i fa-warning"></i>']) . '</span>');
+      $this->assign('event_tz', $tz ?? '<span class="error-message">' . ts('%1 No timezone set', [1 => '<i class="crm-i fa-warning"></i>']) . '</span>');
       $this->add('datepicker', 'registration_start_date', ts('Registration Start Date'), [], FALSE, ['time' => TRUE]);
       $this->add('datepicker', 'registration_end_date', ts('Registration End Date'), [], FALSE, ['time' => TRUE]);
     }