summaryrefslogtreecommitdiff
path: root/include/sanity_check.php
diff options
context:
space:
mode:
authorMatthias Wirtz <[email protected]>2013-04-17 19:23:52 +0200
committerMatthias Wirtz <[email protected]>2013-04-17 19:23:52 +0200
commit95a10c12259cf4e76d8ee95238fccd7589de7a7a (patch)
tree919a7716235c35450a86c0e909664d96f160e7a0 /include/sanity_check.php
parentd9c85e0f112034ca3e3f4d34213f6dcccf9d54e1 (diff)
fixed sanity check (mysqli_connect is also allowed now)
Diffstat (limited to 'include/sanity_check.php')
-rw-r--r--include/sanity_check.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sanity_check.php b/include/sanity_check.php
index a5c682be8..b2888b1d7 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.");
}