upport db fix

This commit is contained in:
Ian 2013-07-26 20:49:38 +02:00
parent c9e9d93f92
commit bfc333624d

View File

@ -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_exits('mysql_connect'))) {
if ($serendipity['dbType'] == 'mysql' && (version_compare(PHP_VERSION, '5.5.0') >= 0 || !function_exists('mysql_connect'))) {
$serendipity['dbType'] = 'mysqli';
}