Better check for mssql, to cope with ODBTP (thanks, Eloy!)

This commit is contained in:
moodler
2006-11-07 12:38:55 +00:00
parent 7620c403ec
commit d4f4fa2abe
+2 -2
View 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;
}