Merge pull request #13981 from atm-florianm/11.0_FIX_pgsql_error_in_adherents_module

11.0 FIX postgreSQL error on landing page when "members" module is on
This commit is contained in:
Laurent Destailleur 2020-05-28 17:50:08 +02:00 committed by GitHub
commit 3ae61fcd73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2282,7 +2282,7 @@ class Adherent extends CommonObject
$sql.= " WHERE a.fk_adherent_type = t.rowid";
$sql.= " AND a.statut = 1";
$sql.= " AND a.entity IN (".getEntity('adherent').")";
$sql.= " AND ((a.datefin IS NULL or a.datefin < '".$this->db->idate($now)."') AND t.subscription = 1)";
$sql.= " AND ((a.datefin IS NULL or a.datefin < '".$this->db->idate($now)."') AND t.subscription = '1')";
$resql=$this->db->query($sql);
if ($resql)