Avoid fatal error if no changed date found in iTip message
This commit is contained in:
parent
b828aad2b4
commit
4b7fd12193
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue