From b08fd91edce387147d424fb0d00f4ca105a91d4a Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 21 Dec 2022 19:02:52 +0100 Subject: [PATCH] fixes #1839 forget no usernames, not only performed_by --- include/ws_functions/pwg.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/ws_functions/pwg.php b/include/ws_functions/pwg.php index f985a0a20..1153cd724 100644 --- a/include/ws_functions/pwg.php +++ b/include/ws_functions/pwg.php @@ -518,7 +518,12 @@ SELECT 'counter' => 1, ); - @$user_ids[ $row['performed_by'] ]++; + $user_ids[ $row['performed_by'] ] = 1; + if ('user' == $row['object']) + { + $user_ids[ $row['object_id'] ] = 1; + } + $current_key = $line_key; $line_id++; }