Skip to content

Commit 8255b34

Browse files
author
Till Brehm
committed
Fixes issue #6669
1 parent 72c4f4f commit 8255b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/plugins/mail_mail_domain_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function mail_mail_domain_edit($event_name, $page_form) {
6060
}
6161

6262
//** If the domain name or owner has been changed, change the domain and owner in all mailbox records
63-
if($page_form->oldDataRecord && ($page_form->oldDataRecord['domain'] != $domain ||
63+
if($page_form->oldDataRecord && !empty($page_form->oldDataRecord['domain']) && ($page_form->oldDataRecord['domain'] != $domain ||
6464
(isset($page_form->dataRecord['client_group_id']) && $page_form->oldDataRecord['sys_groupid'] != $page_form->dataRecord['client_group_id']))) {
6565
$app->uses('getconf');
6666
$mail_config = $app->getconf->get_server_config($page_form->dataRecord["server_id"], 'mail');

0 commit comments

Comments
 (0)