From eb01dc2ccdacc8d4a5a76c4abcbed411be87e37e Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 23 Dec 2009 16:01:29 +0000 Subject: [PATCH] Fix: Switch to mysql if mysqli is not present --- htdocs/install/fileconf.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/install/fileconf.php b/htdocs/install/fileconf.php index 166ac548df4..68de6ffe6f1 100644 --- a/htdocs/install/fileconf.php +++ b/htdocs/install/fileconf.php @@ -236,6 +236,9 @@ while (($file = readdir($handle))!==false) if ($type=='mysqli') $note='(Mysql >= '.versiontostring($versionbasemin).')'; if ($type=='pgsql') $note='(Postgresql >= '.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 $option.='