From 853a3775de7413e2c39879c2771b6104ebe522fc Mon Sep 17 00:00:00 2001 From: Ian <aristophian@googlemail.com> Date: Fri, 26 Jul 2013 19:47:32 +0200 Subject: [PATCH] db: fixed release typos fixed fatal error typos in version_compare and function_exists --- 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 82f2e88f..60581f0b 100644 --- a/include/db/db.inc.php +++ b/include/db/db.inc.php @@ -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'; }