From 21e669410e7ade8f93f46b9f183e6e377bd348e4 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Fri, 28 Feb 2014 17:04:34 +0100 Subject: [PATCH] Only set 'url' property if actually submitted by the client (#2876) --- plugins/calendar/calendar.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index 092a2247..4e8995ed 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -1654,8 +1654,10 @@ class calendar extends rcube_plugin } // mapping url => vurl because of the fullcalendar client script - $event['url'] = $event['vurl']; - unset($event['vurl']); + if (array_key_exists('vurl', $event)) { + $event['url'] = $event['vurl']; + unset($event['vurl']); + } } /**