diff --git a/install.php b/install.php index 6bf5fe8b328..3abacc185ed 100644 --- a/install.php +++ b/install.php @@ -290,14 +290,14 @@ if ($INSTALL['stage'] == DATABASE) { } if ($INSTALL['dbtype'] == 'mssql') { /// Check MSSQL extension is present - if (!extension_loaded('mssql')) { + if (!function_exists('mssql_connect')) { $errormsg = get_string('mssqlextensionisnotpresentinphp', 'install'); $nextstage = DATABASE; } } if ($INSTALL['dbtype'] == 'mssql_n') { /// Check MSSQL extension is present - if (!extension_loaded('mssql')) { + if (!function_exists('mssql_connect')) { $errormsg = get_string('mssqlextensionisnotpresentinphp', 'install'); $nextstage = DATABASE; }