Changeset View
Changeset View
Standalone View
Standalone View
plugins/calendar/calendar.php
Show First 20 Lines • Show All 3,654 Lines • ▼ Show 20 Lines | public function mail_import_itip() | ||||
$metadata['after_action'] = $this->rc->config->get('calendar_itip_after_action', $this->defaults['calendar_itip_after_action']); | $metadata['after_action'] = $this->rc->config->get('calendar_itip_after_action', $this->defaults['calendar_itip_after_action']); | ||||
$this->rc->output->command('plugin.itip_message_processed', $metadata); | $this->rc->output->command('plugin.itip_message_processed', $metadata); | ||||
$error_msg = null; | $error_msg = null; | ||||
} elseif ($error_msg) { | } elseif ($error_msg) { | ||||
$this->rc->output->command('display_message', $error_msg, 'error'); | $this->rc->output->command('display_message', $error_msg, 'error'); | ||||
} | } | ||||
// send iTip reply | // send iTip reply | ||||
if ($event['_method'] == 'REQUEST' && !empty($organizer) && !$noreply && !$error_msg && !empty($reply_sender) | if (!empty($event) && $event['_method'] == 'REQUEST' && !empty($organizer) && !$noreply && !$error_msg && !empty($reply_sender) | ||||
&& !in_array(strtolower($organizer['email']), $emails ?? []) | && !in_array(strtolower($organizer['email']), $emails ?? []) | ||||
) { | ) { | ||||
$event['comment'] = $comment; | $event['comment'] = $comment; | ||||
$itip = $this->load_itip(); | $itip = $this->load_itip(); | ||||
$itip->set_sender_email($reply_sender); | $itip->set_sender_email($reply_sender); | ||||
if ($itip->send_itip_message($event, 'REPLY', $organizer, 'itipsubject' . $status, 'itipmailbody' . $status)) { | if ($itip->send_itip_message($event, 'REPLY', $organizer, 'itipsubject' . $status, 'itipmailbody' . $status)) { | ||||
$mailto = $organizer['name'] ? $organizer['name'] : $organizer['email']; | $mailto = $organizer['name'] ? $organizer['name'] : $organizer['email']; | ||||
▲ Show 20 Lines • Show All 349 Lines • Show Last 20 Lines |