1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:45:56 +00:00

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

This commit is contained in:
Andrew Dolgov
2013-05-29 00:32:23 +04:00
parent 4077f72ced
commit 4e46e90ef7

View File

@@ -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;