Update functions2.lib.php (#26734)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
adee8ac1a8
commit
cb26b28869
1 changed files with 1 additions and 1 deletions
|
|
@ -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 '';
|
||||
|
|
|
|||
Loading…
Reference in a new issue