db: fixed release typos
fixed fatal error typos in version_compare and function_exists
This commit is contained in:
parent
78fdeece33
commit
853a3775de
@ -8,7 +8,7 @@ if (defined('S9Y_FRAMEWORK_DB')) {
|
||||
@define('S9Y_FRAMEWORK_DB', true);
|
||||
|
||||
// PHP 5.5 compat, no longer use deprecated mysql
|
||||
if ($serendipity['dbType'] == 'mysql' && (version_compare(PHP_VERSION, '5.5.0' >= 0) || !function_exits('mysql_connect'))) {
|
||||
if ($serendipity['dbType'] == 'mysql' && (version_compare(PHP_VERSION, '5.5.0', '>=') || !function_exists('mysql_connect'))) {
|
||||
$serendipity['dbType'] = 'mysqli';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user