From 4cbfa504f8a8f46684993987d6895c0aa58bf8ae Mon Sep 17 00:00:00 2001 From: Arno Streuli Date: Tue, 12 May 2026 14:36:16 +0200 Subject: [PATCH] Update syslog_alerts.php Correct the call to get_username, based on the comment of TheWitness Add the argument $_SESSION['sess_user_id'] --- syslog_alerts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syslog_alerts.php b/syslog_alerts.php index 5beacd9..6f47c97 100644 --- a/syslog_alerts.php +++ b/syslog_alerts.php @@ -259,7 +259,7 @@ function api_syslog_alert_save($id, $name, $method, $level, $num, $type, $messag global $syslogdb_default; // get the username - $username = get_username(); + $username = get_username($_SESSION['sess_user_id']); if ($id) { $save['id'] = $id;