summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.php')
-rwxr-xr-xinclude/functions.php4
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'];
}
}