parent
590fac0345
commit
a3be143e8e
@ -38,7 +38,7 @@ class mailing_contacts1 extends MailingTargets
|
||||
public $require_module = array("societe"); // Module mailing actif si modules require_module actifs
|
||||
public $require_admin = 0; // Module mailing actif pour user admin ou non
|
||||
|
||||
public $enabled = '$conf->societe->enabled';
|
||||
public $enabled = 'isModEnabled("societe")';
|
||||
|
||||
/**
|
||||
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
|
||||
@ -388,6 +388,7 @@ class mailing_contacts1 extends MailingTargets
|
||||
}
|
||||
$sql .= " WHERE sp.entity IN (".getEntity('contact').")";
|
||||
$sql .= " AND sp.email <> ''";
|
||||
|
||||
$sql .= " AND (SELECT count(*) FROM ".MAIN_DB_PREFIX."mailing_unsubscribe WHERE email = sp.email) = 0";
|
||||
// Exclude unsubscribed email adresses
|
||||
$sql .= " AND sp.statut = 1";
|
||||
@ -409,7 +410,7 @@ class mailing_contacts1 extends MailingTargets
|
||||
|
||||
// Filter on language
|
||||
if ($filter_lang != '') {
|
||||
$sql .= " AND sp.default_lang = '".$this->db->escape($filter_lang)."'";
|
||||
$sql .= " AND sp.default_lang LIKE '".$this->db->escape($filter_lang)."%'";
|
||||
}
|
||||
|
||||
// Filter on nature
|
||||
|
||||
Loading…
Reference in New Issue
Block a user