Skip to content

Commit

Permalink
Update functions2.lib.php (Dolibarr#26734)
Browse files Browse the repository at this point in the history
Co-authored-by: Laurent Destailleur <[email protected]>
  • Loading branch information
frederic34 and eldy authored Nov 19, 2023
1 parent adee8ac commit cb26b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/lib/functions2.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
Expand Down

0 comments on commit cb26b28

Please sign in to comment.