Don't display Privacy (Classification) when set to X-* value in iTip

... it's ignored anyway.
This commit is contained in:
Aleksander Machniak 2017-07-20 14:42:10 +00:00
parent 1e8050b96a
commit c5843388a8

View file

@ -795,7 +795,7 @@ class libcalendaring_itip
$table->add('label', $this->gettext('location')); $table->add('label', $this->gettext('location'));
$table->add('location', rcube::Q($event['location'])); $table->add('location', rcube::Q($event['location']));
} }
if ($event['sensitivity'] && $event['sensitivity'] != 'public') { if ($event['sensitivity'] && !preg_match('/^(x-|public$)/i', $event['sensitivity'])) {
$table->add('label', $this->gettext('sensitivity')); $table->add('label', $this->gettext('sensitivity'));
$table->add('sensitivity', ucfirst($this->gettext($event['sensitivity'])) . '!'); $table->add('sensitivity', ucfirst($this->gettext($event['sensitivity'])) . '!');
} }