Fix: mysqli was always picked as db after installation
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
// PHP 5.5 compat, no longer use deprecated mysql
|
// PHP 5.5 compat, no longer use deprecated mysql
|
||||||
if ($serendipity['dbType'] ?? '' == 'mysql' && (version_compare(PHP_VERSION, '5.5.0') >= 0 || !function_exists('mysql_connect'))) {
|
if (($serendipity['dbType'] ?? '') == 'mysql' && (version_compare(PHP_VERSION, '5.5.0') >= 0 || !function_exists('mysql_connect'))) {
|
||||||
$serendipity['dbType'] = 'mysqli';
|
$serendipity['dbType'] = 'mysqli';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user