1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-25 10:31:31 +00:00

Merge pull request #161 from swiffer/master

added mysqli_connect to mysql sanity check
This commit is contained in:
Andrew Dolgov
2013-04-17 10:28:47 -07:00

View File

@@ -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.");
}