mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-24 06:21:28 +00:00
error handler: do not log last query, truncate error message to a smaller length
This commit is contained in:
@@ -24,10 +24,6 @@ class Db_Mysqli implements IDb {
|
||||
}
|
||||
|
||||
function query($query, $die_on_error = true) {
|
||||
global $last_query;
|
||||
|
||||
if (strpos($query, "ttrss_error_log") === FALSE) $last_query = $query;
|
||||
|
||||
$result = @mysqli_query($this->link, $query);
|
||||
if (!$result) {
|
||||
$error = @mysqli_error($this->link);
|
||||
|
||||
Reference in New Issue
Block a user