From b1ce17dd4e7bec29d8d6df55fa89806010f7cc33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20France?= Date: Fri, 15 Mar 2024 08:09:50 +0100 Subject: [PATCH] fix warning --- htdocs/compta/facture/prelevement.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php index c2d13c792c2..2371f6ff59a 100644 --- a/htdocs/compta/facture/prelevement.php +++ b/htdocs/compta/facture/prelevement.php @@ -314,7 +314,9 @@ if ($object->id > 0) { } $author = new User($db); - if (!empty($object->fk_user_author)) { + if (!empty($object->user_creation_id)) { + $author->fetch($object->user_creation_id); + } elseif (!empty($object->fk_user_author)) { $author->fetch($object->fk_user_author); }