From 9f28be8f75e0ed0f83af02a07d140cb65f044130 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 c07052ac74..15a6d314e1 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -1633,7 +1633,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] == '#') @@ -2245,7 +2245,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']); }