* EMailAdmin: if wizzard was called on error, it was not able to save fixed account (showed same error again)

because it re-read the original account before saving it
This commit is contained in:
Ralf Becker 2014-07-16 15:50:50 +00:00
parent 9c57ef865d
commit f16808c63f

View File

@ -839,7 +839,7 @@ class emailadmin_wizard
if ($content['acc_id'] || (isset($_GET['acc_id']) && (int)$_GET['acc_id'] > 0) ) emailadmin_imapbase::unsetCachedObjects($content['acc_id']?$content['acc_id']:$_GET['acc_id']);
$tpl = new etemplate_new('emailadmin.account');
if (!is_array($content) || !empty($content['acc_id']) && $content['acc_id'] != $content['old_acc_id'])
if (!is_array($content) || !empty($content['acc_id']) && isset($content['old_acc_id']) && $content['acc_id'] != $content['old_acc_id'])
{
if (!is_array($content)) $content = array();
if ($this->is_admin && isset($_GET['account_id']))