summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-29 00:32:23 +0400
committerAndrew Dolgov <[email protected]>2013-05-29 00:32:23 +0400
commit4e46e90ef7cca9ab5b9f2ddcc260f1423265dbab (patch)
tree06c91a2e31bffce572aaf633d16a3a2c85b8d855 /install
parent4077f72cedf20a9e3aa8376f9bdfa6b1b63a49ee (diff)
installer: use mysqli_error when using mysqli (closes #696)
Diffstat (limited to 'install')
-rw-r--r--install/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/index.php b/install/index.php
index efa917d95..06f13fe14 100644
--- a/install/index.php
+++ b/install/index.php
@@ -191,7 +191,7 @@
if (!$result) {
$query = htmlspecialchars($query);
if ($die_on_error) {
- die("Query <i>$query</i> failed: " . ($link ? mysql_error($link) : "No connection"));
+ die("Query <i>$query</i> failed: " . ($link ? function_exists("mysqli_connect") ? mysqli_error($link) : mysql_error($link) : "No connection"));
}
}
return $result;