From: Matthias Wirtz Date: Wed, 17 Apr 2013 17:23:52 +0000 (+0200) Subject: fixed sanity check (mysqli_connect is also allowed now) X-Git-Tag: 1.7.9~25^2~155^2^2^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=95a10c12259cf4e76d8ee95238fccd7589de7a7a;p=tt-rss.git fixed sanity check (mysqli_connect is also allowed now) --- diff --git a/include/sanity_check.php b/include/sanity_check.php index a5c682be..b2888b1d 100644 --- a/include/sanity_check.php +++ b/include/sanity_check.php @@ -118,7 +118,7 @@ array_push($errors, "PHP support for JSON is required, but was not found."); } - if (DB_TYPE == "mysql" && !function_exists("mysql_connect")) { + if (DB_TYPE == "mysql" && !function_exists("mysql_connect") && !function_exists("mysqli_connect")) { array_push($errors, "PHP support for MySQL is required for configured DB_TYPE in config.php."); }