From b585acbd04deb567e97ae80f5004cfe80dd06d19 Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Mon, 7 Nov 2022 12:58:12 -0500 Subject: [PATCH] PHP8 fix - always define locations in event info template --- CRM/Event/Page/EventInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Page/EventInfo.php b/CRM/Event/Page/EventInfo.php index 92ffc131e1..58681f7177 100644 --- a/CRM/Event/Page/EventInfo.php +++ b/CRM/Event/Page/EventInfo.php @@ -178,8 +178,8 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { $this->assign('action', CRM_Core_Action::VIEW); //To show the event location on maps directly on event info page $locations = CRM_Event_BAO_Event::getMapInfo($this->_id); + $this->assign('locations', $locations); if (!empty($locations) && !empty($values['event']['is_map'])) { - $this->assign('locations', $locations); $this->assign('mapProvider', $config->mapProvider); $this->assign('mapKey', $config->mapAPIKey); $sumLat = $sumLng = 0; -- 2.25.1