Update functions2.lib.php (#26734)

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Frédéric FRANCE
2023-11-19 01:02:21 +01:00
committed by GitHub
parent adee8ac1a8
commit cb26b28869

View File

@@ -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 '';