mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-12 11:31:00 +02:00
installer: use mysqli_error when using mysqli (closes #696)
This commit is contained in:
parent
4077f72ced
commit
4e46e90ef7
@ -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…
x
Reference in New Issue
Block a user