Merge pull request #23262 from inovea-conseil/FIX23238
When no language selected, value is 0 so it enters in the condition f…
This commit is contained in:
commit
5e7a8012f5
@ -408,7 +408,7 @@ class mailing_contacts1 extends MailingTargets
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Filter on language
|
// Filter on language
|
||||||
if ($filter_lang != '') {
|
if (!empty($filter_lang)) {
|
||||||
$sql .= " AND sp.default_lang = '".$this->db->escape($filter_lang)."'";
|
$sql .= " AND sp.default_lang = '".$this->db->escape($filter_lang)."'";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -439,7 +439,6 @@ class mailing_contacts1 extends MailingTargets
|
|||||||
|
|
||||||
$sql .= " ORDER BY sp.email";
|
$sql .= " ORDER BY sp.email";
|
||||||
// print "wwwwwwx".$sql;
|
// print "wwwwwwx".$sql;
|
||||||
|
|
||||||
// Stocke destinataires dans cibles
|
// Stocke destinataires dans cibles
|
||||||
$result = $this->db->query($sql);
|
$result = $this->db->query($sql);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user