mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Calendar - avoid warning about illegal string offset 'template'
This commit is contained in:
parent
7306cc36ab
commit
29cf6e60aa
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user