diff --git a/felamimail/inc/class.uisieve.inc.php b/felamimail/inc/class.uisieve.inc.php index bdacdd5b41..4d08123ab8 100644 --- a/felamimail/inc/class.uisieve.inc.php +++ b/felamimail/inc/class.uisieve.inc.php @@ -660,10 +660,9 @@ // ToDO set default } else { - $this->t->set_var('selected_'.$vacation['days'], 'selected="selected"'); + $this->t->set_var('selected_'.($vacation['days']?$vacation['days']:'7'), 'selected="selected"'); } - if (empty($preferences->preferences['prefpreventforwarding']) || - $preferences->preferences['prefpreventforwarding'] == 0 ) + if (empty($preferences->preferences['prefpreventforwarding']) || $preferences->preferences['prefpreventforwarding'] == 0 ) { $this->t->set_var('vacation_forwards',''); }