From f46504554ed65d2b226fdb2d9d0cd9e1ce9ff386 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 17 Sep 2015 11:48:25 +0200 Subject: [PATCH] lib: Check for mssql extension too in Platform::hasMssqlSupport() refs #9683 --- library/Icinga/Application/Platform.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Application/Platform.php b/library/Icinga/Application/Platform.php index 55b4d9d4d..0dfc0c6c2 100644 --- a/library/Icinga/Application/Platform.php +++ b/library/Icinga/Application/Platform.php @@ -344,13 +344,13 @@ class Platform /** * Return whether it's possible to connect to a MSSQL database * - * Checks whether the Zend framework adapter for MSSQL is available + * Checks whether the mssql pdo extension has been loaded and Zend framework adapter for MSSQL is available * * @return bool */ public static function hasMssqlSupport() { - return static::classExists('Zend_Db_Adapter_Pdo_Mssql'); + return static::extensionLoaded('mssql') && static::classExists('Zend_Db_Adapter_Pdo_Mssql'); } /**