Fix: Detection of valid email text

This commit is contained in:
Laurent Destailleur 2011-05-25 17:46:08 +00:00
parent 8ec13d4878
commit 7a41dd65f2

View File

@ -281,7 +281,7 @@ class AdherentType extends CommonObject
{ {
global $conf; global $conf;
if (! empty($this->mail_valid)) if (! empty($this->mail_valid) && trim(dol_htmlentitiesbr_decode($this->mail_valid)))
{ {
return $this->mail_valid; return $this->mail_valid;
} }
@ -299,7 +299,7 @@ class AdherentType extends CommonObject
{ {
global $conf; global $conf;
if (! empty($this->mail_subscription)) // Not yet developped if (! empty($this->mail_subscription) && trim(dol_htmlentitiesbr_decode($this->mail_subscription))) // Property not yet defined
{ {
return $this->mail_subscription; return $this->mail_subscription;
} }
@ -317,7 +317,7 @@ class AdherentType extends CommonObject
{ {
global $conf; global $conf;
if (! empty($this->mail_resiliate)) // Not yet developped if (! empty($this->mail_resiliate) && trim(dol_htmlentitiesbr_decode($this->mail_resiliate))) // Property not yet defined
{ {
return $this->mail_resiliate; return $this->mail_resiliate;
} }