Skip to content

Commit c173389

Browse files
authored
Update syslog_reports.php
Correct the call to get_username, based on the comment of TheWitness Add the argument $_SESSION['sess_user_id']
1 parent 1746abe commit c173389

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

syslog_reports.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ function api_syslog_report_save($id, $name, $type, $message, $timespan, $timepar
253253
global $config, $syslogdb_default;
254254

255255
// get the username
256-
$username = get_username();
256+
$username = get_username($_SESSION['sess_user_id']);
257257

258258
if ($id) {
259259
$save['id'] = $id;

0 commit comments

Comments
 (0)