From 7a41dd65f25ab0a5f1350c53aa55d3fb0ba995e1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 25 May 2011 17:46:08 +0000 Subject: [PATCH] Fix: Detection of valid email text --- htdocs/adherents/class/adherent_type.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/adherents/class/adherent_type.class.php b/htdocs/adherents/class/adherent_type.class.php index 4d633205006..9a7110eaaef 100644 --- a/htdocs/adherents/class/adherent_type.class.php +++ b/htdocs/adherents/class/adherent_type.class.php @@ -281,7 +281,7 @@ class AdherentType extends CommonObject { global $conf; - if (! empty($this->mail_valid)) + if (! empty($this->mail_valid) && trim(dol_htmlentitiesbr_decode($this->mail_valid))) { return $this->mail_valid; } @@ -299,7 +299,7 @@ class AdherentType extends CommonObject { 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; } @@ -317,7 +317,7 @@ class AdherentType extends CommonObject { 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; }