summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a217036)
raw | patch | inline | side by side (parent: a217036)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 22 Apr 2010 15:58:26 +0000 (15:58 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 22 Apr 2010 15:58:26 +0000 (15:58 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17802 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofax/gofax/faxaccount/class_gofaxAccount.inc | patch | blob | history |
diff --git a/gosa-plugins/gofax/gofax/faxaccount/class_gofaxAccount.inc b/gosa-plugins/gofax/gofax/faxaccount/class_gofaxAccount.inc
index 6c46f112353a1d116d7a643dbbb3edd4bdbf8887..51451f0890bdc12e04a0d5271ec66f53df64542b 100644 (file)
$message[]= msgPool::invalid(_("Fax number"),$this->facsimileTelephoneNumber,"/[0-9]/");
}
- /* IF mail is specified (which is only the case if there's no mail account
- present), check if it's valid.. */
- if (@isset($this->parent->by_object['mailAccount']) &&
- $this->goFaxDeliveryMode & 32){
+ // check for a valid Mail-Address in case of 'delivery to mailbox'
+ $mailAccount = (isset($this->parent->by_object['mailAccount']) && $this->parent->by_object['mailAccount']->is_account);
+ if(!$mailAccount && $this->goFaxDeliveryMode & 32){
if ($this->mail == ""){
$message[]= _("Mail delivery is requested without target address!");
} elseif (!tests::is_email($this->mail)){