Fix
This commit is contained in:
parent
145b1e97ca
commit
59e89fd53a
@ -248,8 +248,8 @@ class mailing_fraise extends MailingTargets
|
|||||||
$sql .= " FROM ".MAIN_DB_PREFIX."adherent as a";
|
$sql .= " FROM ".MAIN_DB_PREFIX."adherent as a";
|
||||||
if (GETPOST('filter_category'))
|
if (GETPOST('filter_category'))
|
||||||
{
|
{
|
||||||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."categorie_member as cm ON cm.fk_member = a.rowid";
|
$sql .= " INNER JOIN ".MAIN_DB_PREFIX."categorie_member as cm ON cm.fk_member = a.rowid";
|
||||||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."categorie as c ON c.rowid = cm.fk_categorie ON c.rowid='".$this->db->escape(GETPOST('filter_category'))."'";
|
$sql .= " INNER JOIN ".MAIN_DB_PREFIX."categorie as c ON c.rowid = cm.fk_categorie ON c.rowid='".$this->db->escape(GETPOST('filter_category'))."'";
|
||||||
}
|
}
|
||||||
$sql .= " , ".MAIN_DB_PREFIX."adherent_type as ta";
|
$sql .= " , ".MAIN_DB_PREFIX."adherent_type as ta";
|
||||||
$sql .= " WHERE a.entity IN (".getEntity('member').") AND a.email <> ''"; // Note that null != '' is false
|
$sql .= " WHERE a.entity IN (".getEntity('member').") AND a.email <> ''"; // Note that null != '' is false
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user