From 29cf6e60aaa966f2a657dfee9dc713ebf7fc95ca Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 21 Jun 2019 09:52:59 -0600 Subject: [PATCH] Calendar - avoid warning about illegal string offset 'template' --- calendar/inc/class.calendar_uiforms.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 3b1500a254..09d9251c3c 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -1511,8 +1511,7 @@ class calendar_uiforms extends calendar_ui 'no_popup' => isset($_GET['no_popup']), 'template' => isset($_GET['template']) ? $_GET['template'] : (isset($_REQUEST['print']) ? 'calendar.print' : 'calendar.edit'), ); - if($preserv['template'] && ($registry = Link::get_registry('calendar', 'add')) && $registry['template'] == $preserv['template'] && - $this->cal_prefs['new_event_dialog'] == 'edit') + if($preserv['template'] && $this->cal_prefs['new_event_dialog'] == 'edit') { // User wants full thing unset($preserv['template']);