Fix compat. with PHP 5.2. (#1489813)

pull/181/head
Aleksander Machniak 10 years ago
parent ee3dd89c04
commit 701d7a369b

@ -146,7 +146,7 @@ class rcube_sieve_vacation extends rcube_sieve_engine
if (!$error) {
$rule = $this->vacation;
$rule['type'] = 'if';
$rule['name'] = $rule['name'] ?: $this->plugin->gettext('vacation');
$rule['name'] = $rule['name'] ? $rule['name'] : $this->plugin->gettext('vacation');
$rule['disabled'] = $status == 'off';
$rule['actions'][0] = $vacation_action;
$rule['tests'] = $vacation_tests;

Loading…
Cancel
Save