From 2a5d0e3ad44e4011d545d6371b6336be1110f8cc Mon Sep 17 00:00:00 2001 From: onli Date: Sun, 2 May 2021 09:45:53 +0200 Subject: [PATCH] Fix: mysqli was always picked as db after installation --- include/db/db.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/db/db.inc.php b/include/db/db.inc.php index 279b931c..386b7ba1 100644 --- a/include/db/db.inc.php +++ b/include/db/db.inc.php @@ -3,7 +3,7 @@ # All rights reserved. See LICENSE file for licensing details // 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'; }