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'; }