diff options
author | Andrew Dolgov <[email protected]> | 2018-12-10 10:53:11 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-10 10:53:11 +0300 |
commit | 7e5c99914683620348e4a91ab2d6692749f198f4 (patch) | |
tree | bcb7a77e321a96a453b414a08c806f4f711a2314 /include/functions.php | |
parent | 51de0ce8073065841bd523bd8722befc5343ee6c (diff) |
show alert if recent_log_events > 0
Diffstat (limited to 'include/functions.php')
-rwxr-xr-x | include/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php index fe7582ad2..20c1919a8 100755 --- a/include/functions.php +++ b/include/functions.php @@ -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']; } } |