mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-15 14:01:22 +01:00
Update functions2.lib.php (#26734)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
@@ -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 '';
|
||||
|
||||
Reference in New Issue
Block a user