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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user