Skip to content
Snippets Groups Projects
Commit 4e46e90e authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

installer: use mysqli_error when using mysqli (closes #696)

parent 4077f72c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment