Skip to content

Commit 98302de

Browse files
committed
Fixed: FS#1122 - Corrupted email aliases and fetchmail settings after open mailbox settings.
1 parent f49e515 commit 98302de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

interface/web/mail/mail_user_edit.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ function onAfterUpdate() {
304304
}
305305

306306
//** If the email address has been changed, change it in all aliases too
307-
if($this->oldDataRecord['email'] != $this->dataRecord['email']) {
307+
if(isset($this->dataRecord['email']) && $this->oldDataRecord['email'] != $this->dataRecord['email']) {
308+
//if($this->oldDataRecord['email'] != $this->dataRecord['email']) {
308309

309310
//* Update the aliases
310311
$forwardings = $app->db->queryAllRecords("SELECT * FROM mail_forwarding WHERE destination = '".$app->db->quote($this->oldDataRecord['email'])."'");

0 commit comments

Comments
 (0)