Fixing style errors.
This commit is contained in:
parent
ab0d60065d
commit
1c26139789
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user