summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;