]> git.wh0rd.org - tt-rss.git/commitdiff
fixed sanity check (mysqli_connect is also allowed now)
authorMatthias Wirtz <matthias.wirtz@hotmail.de>
Wed, 17 Apr 2013 17:23:52 +0000 (19:23 +0200)
committerMatthias Wirtz <matthias.wirtz@hotmail.de>
Wed, 17 Apr 2013 17:23:52 +0000 (19:23 +0200)
include/sanity_check.php

index a5c682be858211889a77ead4b503e281aceef6ec..b2888b1d7e65d50591f5cfebb30c48acace68b7d 100644 (file)
                                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.");
                        }