* Mail: Make sure there's folder to notify before attempting to write the notifications

This commit is contained in:
Hadi Nategh 2017-04-24 14:28:08 +02:00
parent a4d9115d64
commit 009682b949

View File

@ -1098,7 +1098,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'];