diff --git a/core/cmdbsource.class.inc.php b/core/cmdbsource.class.inc.php index fa895c8bc..fc429777a 100644 --- a/core/cmdbsource.class.inc.php +++ b/core/cmdbsource.class.inc.php @@ -418,12 +418,12 @@ class CMDBSource { $sDBVendor = static::ENUM_DB_VENDOR_MYSQL; - $sVersionComment = strtolower(static::GetServerVariable('version_comment')); - if(preg_match('/mariadb/', $sVersionComment) === 1) + $sVersionComment = static::GetServerVariable('version') . ' - ' . static::GetServerVariable('version_comment'); + if(preg_match('/mariadb/i', $sVersionComment) === 1) { $sDBVendor = static::ENUM_DB_VENDOR_MARIADB; } - else if(preg_match('/percona/', $sVersionComment) === 1) + else if(preg_match('/percona/i', $sVersionComment) === 1) { $sDBVendor = static::ENUM_DB_VENDOR_PERCONA; }