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
@ -1,6 +1,6 @@
|
|||||||
<?PHP
|
<?PHP
|
||||||
/* Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -220,15 +220,17 @@ class Paiement
|
|||||||
|
|
||||||
$this->id = $obj->idp;
|
$this->id = $obj->idp;
|
||||||
|
|
||||||
$cuser = new User($this->db, $obj->fk_user_creat);
|
if ($obj->fk_user_creat) {
|
||||||
$cuser->fetch();
|
$cuser = new User($this->db, $obj->fk_user_creat);
|
||||||
|
$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