Si le user de création ou modification sont null (c'est le cas sur les vieux enregistrements de paiement), alors on ne recherche pas son nom (requete vouée à l'échec).
This commit is contained in:
parent
2e9e24533f
commit
031254420e
@ -220,15 +220,17 @@ class Paiement
|
|||||||
|
|
||||||
$this->id = $obj->idp;
|
$this->id = $obj->idp;
|
||||||
|
|
||||||
|
if ($obj->fk_user_creat) {
|
||||||
$cuser = new User($this->db, $obj->fk_user_creat);
|
$cuser = new User($this->db, $obj->fk_user_creat);
|
||||||
$cuser->fetch();
|
$cuser->fetch();
|
||||||
|
|
||||||
$this->user_creation = $cuser;
|
$this->user_creation = $cuser;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($obj->fk_user_modif) {
|
||||||
$muser = new User($this->db, $obj->fk_user_modif);
|
$muser = new User($this->db, $obj->fk_user_modif);
|
||||||
$muser->fetch();
|
$muser->fetch();
|
||||||
|
|
||||||
$this->user_modification = $muser;
|
$this->user_modification = $muser;
|
||||||
|
}
|
||||||
|
|
||||||
$this->date_creation = $obj->datec;
|
$this->date_creation = $obj->datec;
|
||||||
$this->date_modification = $obj->tms;
|
$this->date_modification = $obj->tms;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user