summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4bd705e)
raw | patch | inline | side by side (parent: 4bd705e)
author | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 09:52:46 +0000 (09:52 +0000) | ||
committer | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 09:52:46 +0000 (09:52 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19619 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/personal/groupware/class_groupware.inc | patch | blob | history |
diff --git a/gosa-plugins/groupware/personal/groupware/class_groupware.inc b/gosa-plugins/groupware/personal/groupware/class_groupware.inc
index 26b4d0d635ddb94b4cb3895680f83a1c6ef0f586..430e3a904b0eb9d98d3ac9b2e82899bd7d680ff9 100644 (file)
if(isset($this->forwardingAddresses) && is_array($this->forwardingAddresses)){
foreach($this->forwardingAddresses as $fAddress){
if(!tests::is_email ($fAddress)){
- $messages[] = msgPool::invalid(_("Mail address"),$fAddress, "", _("Example: user@excom.intranet.gonicus.de"));
+ $messages[] = msgPool::invalid(_("Mail address"),$fAddress, "",
+ _("Example: user@excom.intranet.gonicus.de"));
+ }
+ if($fAddress == $this->mailAddress){
+ $messages[] = msgPool::invalid(_("Mail address same as primary Email Address"),$fAddress, "",
+ _("Forward Address and primary Email Address must not be the same (cirle reference)"));
}
}
}
if(!tests::is_email ($fAddress)){
$messages[] = msgPool::invalid(_("Mail address"),$fAddress, "", _("Example: user@excom.intranet.gonicus.de"));
}
+ if($fAddress == $this->mailAddress){
+ $messages[] = msgPool::invalid(_("Mail address same as primary Email Address"),$fAddress, "",
+ _("Alternative Address and primary Email Address must not be the same (cirle reference)"));
+ }
}
}