]> git.mjollnir.org Git - moodle.git/commitdiff
Merged better mssql check from stable
authormoodler <moodler>
Tue, 7 Nov 2006 12:39:56 +0000 (12:39 +0000)
committermoodler <moodler>
Tue, 7 Nov 2006 12:39:56 +0000 (12:39 +0000)
install.php

index c2bc22eda0c279ada5ebe2bf3177a50d032e208d..0e14ecd9ff2c90aadf984fa8c1f24a2b442ec0a9 100644 (file)
@@ -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;
         }