1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:35:55 +00:00

show alert if recent_log_events > 0

This commit is contained in:
Andrew Dolgov
2018-12-10 10:53:11 +03:00
parent 51de0ce807
commit 7e5c999146
8 changed files with 27 additions and 4 deletions

View File

@@ -1311,7 +1311,7 @@
$data["labels"] = Labels::get_all_labels($_SESSION["uid"]);
if (LOG_DESTINATION == 'sql') {
if (LOG_DESTINATION == 'sql' && $_SESSION['access_level'] >= 10) {
if (DB_TYPE == 'pgsql') {
$log_interval = "created_at > NOW() - interval '1 hour'";
} else {
@@ -1322,7 +1322,7 @@
$sth->execute();
if ($row = $sth->fetch()) {
$data['recent_eventlog_entries'] = $row['cid'];
$data['recent_log_events'] = $row['cid'];
}
}