mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-20 16:31:51 +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()
|
function version_db()
|
||||||
{
|
{
|
||||||
global $db;
|
global $db;
|
||||||
if (is_object($db, 'getVersion')) {
|
if (is_object($db) && method_exists($db, 'getVersion')) {
|
||||||
return $db->getVersion();
|
return $db->getVersion();
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
|
|||||||
Reference in New Issue
Block a user