fix warning

This commit is contained in:
Frédéric France
2024-03-15 08:09:50 +01:00
parent cca4bef00b
commit b1ce17dd4e

View File

@@ -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);
}