installer: use mysqli_error when using mysqli (closes #696)
This commit is contained in:
parent
4077f72ced
commit
4e46e90ef7
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
$query = htmlspecialchars($query);
|
$query = htmlspecialchars($query);
|
||||||
if ($die_on_error) {
|
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;
|
return $result;
|
||||||
|
|
Loading…
Reference in a new issue