From a77ba11cfa0deb34daa01b7df200f5e417da2904 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 12 Jun 2017 13:41:04 +0200 Subject: [PATCH] * Calendar: fix SQL error when automatic purge of older events is configured --- calendar/inc/class.calendar_so.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index f91b51acad..dcc0443db4 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -1629,7 +1629,7 @@ ORDER BY cal_user_type, cal_usre_id } // Custom fields Api\Storage\Customfields::handle_files('calendar', $cal_id, $event); - + foreach($event as $name => $value) { if ($name[0] == '#') @@ -2241,7 +2241,7 @@ ORDER BY cal_user_type, cal_usre_id ),array( 'sync_appname' => 'calendar', 'sync_contentid' => $row['cal_id'], // sync_contentid is varchar(60)! - ), __LINE__, __FILE__); + ), __LINE__, __FILE__, 'calendar'); // handle links Link::unlink('', 'calendar', $row['cal_id']); }