Fix: Switch to mysql if mysqli is not present
This commit is contained in:
parent
278127ae49
commit
eb01dc2ccd
@ -237,6 +237,9 @@ while (($file = readdir($handle))!==false)
|
|||||||
if ($type=='pgsql') $note='(Postgresql >= '.versiontostring($versionbasemin).')';
|
if ($type=='pgsql') $note='(Postgresql >= '.versiontostring($versionbasemin).')';
|
||||||
if ($type=='mssql') $note='(SQL Server >= '.versiontostring($versionbasemin).')';
|
if ($type=='mssql') $note='(SQL Server >= '.versiontostring($versionbasemin).')';
|
||||||
|
|
||||||
|
// Switch to mysql if mysqli is not present
|
||||||
|
if ($defaultype=='mysqli' && !function_exists('mysqli_connect')) $defaultype = 'mysql';
|
||||||
|
|
||||||
// Affiche ligne dans liste
|
// Affiche ligne dans liste
|
||||||
$option.='<option value="'.$type.'"'.($defaultype == $type?' selected':'');
|
$option.='<option value="'.$type.'"'.($defaultype == $type?' selected':'');
|
||||||
if (! function_exists($testfunction)) $option.=' disabled="disabled"';
|
if (! function_exists($testfunction)) $option.=' disabled="disabled"';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user