Fixing style errors.

This commit is contained in:
stickler-ci 2020-01-28 20:29:17 +00:00
parent ab0d60065d
commit 1c26139789
2 changed files with 8 additions and 8 deletions

View File

@ -2280,16 +2280,16 @@ class Adherent extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."adherent as a"; $sql.= " FROM ".MAIN_DB_PREFIX."adherent as a";
$sql.= ", ".MAIN_DB_PREFIX."adherent_type as t"; $sql.= ", ".MAIN_DB_PREFIX."adherent_type as t";
$sql.= " WHERE a.fk_adherent_type = t.rowid"; $sql.= " WHERE a.fk_adherent_type = t.rowid";
if ($mode == 'expired') if ($mode == 'expired')
{ {
$sql.= " AND a.statut = 1"; $sql.= " AND a.statut = 1";
$sql.= " AND a.entity IN (".getEntity('adherent').")"; $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)";
} }
elseif ($mode == 'shift') elseif ($mode == 'shift')
{ {
$sql.= " AND a.statut = -1"; $sql.= " AND a.statut = -1";
$sql.= " AND a.entity IN (".getEntity('adherent').")"; $sql.= " AND a.entity IN (".getEntity('adherent').")";
} }
$resql=$this->db->query($sql); $resql=$this->db->query($sql);