Better check for mssql, to cope with ODBTP (thanks, Eloy!)
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user