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

This commit is contained in:
Hadi Nategh 2014-12-19 09:27:21 +00:00
parent ec5e5080c6
commit 36d971867f

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']))
{