* Calendar: fix SQL error when automatic purge of older events is configured

This commit is contained in:
Ralf Becker 2017-06-12 13:41:04 +02:00
parent cd4c3ffbbc
commit 9f28be8f75

View File

@ -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']);
}