From 5f8deafae6271c9bad791535ee310500f0ab049b Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 7 Nov 2006 12:39:56 +0000 Subject: [PATCH] Merged better mssql check from stable --- install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.php b/install.php index c2bc22eda0..0e14ecd9ff 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; } -- 2.39.5