summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aa386ba)
raw | patch | inline | side by side (parent: aa386ba)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 24 Jul 2009 12:04:48 +0000 (12:04 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 24 Jul 2009 12:04:48 +0000 (12:04 +0000) |
-If we try to add a gosaMailAlternateAddress which is already in use, then display a message.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13952 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13952 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/mail/personal/mail/class_mailAccount.inc | patch | blob | history |
diff --git a/gosa-plugins/mail/personal/mail/class_mailAccount.inc b/gosa-plugins/mail/personal/mail/class_mailAccount.inc
index 34c66cb5211b552c2ee3d13d4138e2429ccc9455..9e34540420ddb577e269f2e8cd484abb83cb86f0 100644 (file)
}
if ($valid && ($user= $this->addAlternate ($_POST['alternate_address'])) != ""){
$ui= get_userinfo();
- if ($user != $ui->username){
- msg_dialog::display(_("Error"), msgPool::duplicated(_("Mail address"))." ".
- sprintf(_("Address is already in use by user '%s'."), $user), ERROR_DIALOG);
- }
+ msg_dialog::display(_("Error"), msgPool::duplicated(_("Mail address"))." ".
+ sprintf(_("Address is already in use by user '%s'."), $user), ERROR_DIALOG);
}
}
if (isset($_POST['delete_alternate']) && isset($_POST['alternates_list'])){