Avoid fatal error if no changed date found in iTip message

This commit is contained in:
Thomas Bruederli 2014-02-26 19:33:11 +01:00
parent b828aad2b4
commit 4b7fd12193

View file

@ -2294,7 +2294,12 @@ class calendar extends rcube_plugin
if ($success) {
$message = $this->ical->method == 'REPLY' ? 'attendeupdateesuccess' : ($deleted ? 'successremoval' : 'importedsuccessfully');
$this->rc->output->command('display_message', $this->gettext(array('name' => $message, 'vars' => array('calendar' => $calendar['name']))), 'confirmation');
$this->rc->output->command('plugin.fetch_event_rsvp_status', array('uid' => $event['uid'], 'changed' => $event['changed']->format('U'), 'sequence' => intval($event['sequence']), 'fallback' => strtoupper($status)));
$this->rc->output->command('plugin.fetch_event_rsvp_status', array(
'uid' => $event['uid'],
'changed' => is_object($event['changed']) ? $event['changed']->format('U') : 0,
'sequence' => intval($event['sequence']),
'fallback' => strtoupper($status),
));
$error_msg = null;
}
else if ($error_msg)