From 6f77df331c7f73477388bb6a024db54156923f0e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 22 Aug 2022 15:09:38 +0200 Subject: [PATCH] Update functions2.lib.php --- htdocs/core/lib/functions2.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions2.lib.php b/htdocs/core/lib/functions2.lib.php index f9944164178..cad97108733 100644 --- a/htdocs/core/lib/functions2.lib.php +++ b/htdocs/core/lib/functions2.lib.php @@ -416,7 +416,7 @@ function dol_print_object_info($object, $usetable = 0) } else { print ': '; } - if (!empty($object->user_approve)) { + if (!empty($object->user_approve) && is_object($object->user_approve)) { if ($object->user_approve->id) { print $object->user_approve->getNomUrl(-1, '', 0, 0, 0); } else {