From cb26b288699d341f57c67de33509a5cda04ee2aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 19 Nov 2023 01:02:21 +0100 Subject: [PATCH] Update functions2.lib.php (#26734) Co-authored-by: Laurent Destailleur --- 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 d5144f00efb..3b9b89b7b8c 100644 --- a/htdocs/core/lib/functions2.lib.php +++ b/htdocs/core/lib/functions2.lib.php @@ -1891,7 +1891,7 @@ function version_php() function version_db() { global $db; - if (is_object($db, 'getVersion')) { + if (is_object($db) && method_exists($db, 'getVersion')) { return $db->getVersion(); } return '';