* Mail: Fix error saving mail account while Notify mail folders is empty and Use Default option is not set.

This commit is contained in:
Hadi Nategh 2017-04-24 14:37:24 +02:00
parent b5bbf3721b
commit e2d8c9f952

View File

@ -1069,7 +1069,7 @@ class admin_mail
// load default ones
$content = array_merge($content, Mail\Notifications::read($content['acc_id'], 0));
}
if (!$content['notify_use_default'])
if (!$content['notify_use_default'] && is_array($content['notify_folders']))
{
$content['notify_account_id'] = $content['called_for'] ?
$content['called_for'] : $GLOBALS['egw_info']['user']['account_id'];