From e2d8c9f95296b321c79b23f7773cc4d6f7973d88 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 24 Apr 2017 14:37:24 +0200 Subject: [PATCH] * Mail: Fix error saving mail account while Notify mail folders is empty and Use Default option is not set. --- admin/inc/class.admin_mail.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/inc/class.admin_mail.inc.php b/admin/inc/class.admin_mail.inc.php index c8539df44b..6aee26626a 100644 --- a/admin/inc/class.admin_mail.inc.php +++ b/admin/inc/class.admin_mail.inc.php @@ -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'];