Update adherent.class.php

This commit is contained in:
Laurent Destailleur 2019-02-13 16:31:05 +01:00 committed by GitHub
parent 9a28c12781
commit af4d3c5654
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -563,19 +563,6 @@ class Adherent extends CommonObject
$sql.= ", fk_user_mod = ".($user->id>0?$user->id:'null'); // Can be null because member can be create by a guest
$sql.= " WHERE rowid = ".$this->id;
$sql2 = "SELECT libelle";
$sql2.= " FROM ".MAIN_DB_PREFIX."adherent_type";
$sql2.= " WHERE rowid = ".$this->typeid;
$resql2 = $this->db->query($sql2);
if($resql2)
{
while ($obj=$this->db->fetch_object($resql2))
{
$this->type=$obj->libelle;
}
}
dol_syslog(get_class($this)."::update update member", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)