mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
Platform: Correct detecting MSSQL Support
PDO Implementation of zf1 builds on module mssql OR pdo_dblib, while dblib is preferred. Newer implementations would support pdo_sqlsrv, but that is not available with ZF1.
This commit is contained in:
parent
c0e8b33b33
commit
123a0b8196
@ -351,7 +351,8 @@ class Platform
|
||||
*/
|
||||
public static function hasMssqlSupport()
|
||||
{
|
||||
return static::extensionLoaded('mssql') && static::classExists('Zend_Db_Adapter_Pdo_Mssql');
|
||||
return (static::extensionLoaded('mssql') || static::extensionLoaded('pdo_dblib'))
|
||||
&& static::classExists('Zend_Db_Adapter_Pdo_Mssql');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user