fix warning if there are no participants

This commit is contained in:
Ralf Becker 2015-09-29 07:32:19 +00:00
parent 1d2d9e2478
commit 2156013454

View File

@ -1222,7 +1222,7 @@ class calendar_boupdate extends calendar_bo
if ($updateTS) $GLOBALS['egw']->contenthistory->updateTimeStamp('calendar', $cal_id, $event['id'] ? 'modify' : 'add', $this->now); if ($updateTS) $GLOBALS['egw']->contenthistory->updateTimeStamp('calendar', $cal_id, $event['id'] ? 'modify' : 'add', $this->now);
// create links for new participants from addressbook, if configured // create links for new participants from addressbook, if configured
if ($cal_id && $GLOBALS['egw_info']['server']['link_contacts']) if ($cal_id && $GLOBALS['egw_info']['server']['link_contacts'] && $event['participants'])
{ {
foreach($event['participants'] as $uid => $status) foreach($event['participants'] as $uid => $status)
{ {