1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 14:15:56 +00:00

support mysqli when available

This commit is contained in:
Andrew Dolgov
2013-04-17 18:56:13 +04:00
parent a42c55f02b
commit ae35bb87eb
4 changed files with 84 additions and 4 deletions

View File

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