Récupération de l'auteur de la propal

This commit is contained in:
Regis Houssin 2006-04-03 09:52:21 +00:00
parent 33098783c8
commit b3066ed319

View File

@ -570,6 +570,22 @@ class Propal
} }
} }
if ($this->user_author_id)
{
$sql = "SELECT name, firstname";
$sql.= " FROM ".MAIN_DB_PREFIX."user";
$sql.= " WHERE rowid = ".$this->user_author_id;
$resqluser = $this->db->query($sql);
if ($resqluser)
{
obju = $this->db->fetch_object($resqluser);
$this->user_author_name = $obju->name;
$this->user_author_firstname = $obju->firstname;
}
}
if ($obj->fk_statut == 0) if ($obj->fk_statut == 0)
{ {