Set vacation addresses with all aliases if there's nothing set for the first time

This commit is contained in:
Hadi Nategh 2014-12-16 15:24:47 +00:00
parent 0f32084f8d
commit 66bbe734d8

View File

@ -534,9 +534,9 @@ class mail_sieve
{
$content = $vacation = $vacRules['vacation'];
if (!empty($profileID)) $content['acc_id'] = $profileID;
if (empty($vacation['addresses']))
if (empty($vacation['addresses']) || implode('',$vacation['addresses']) == '')
{
$content['addresses'] = '';
$content['addresses'] = $vacRules['aliases'];
}
if (!empty($vacation['forwards']))
{