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:
Laurent Destailleur 2022-12-22 13:53:35 +01:00 committed by GitHub
commit 5e7a8012f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {