From cae4b8c13b9e3ccb1410325d7add1369548af86f Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 15 Jan 2026 14:41:47 +0100 Subject: [PATCH] (cp 15e451c23) fixes #2510 fallback for missing username --- include/ws_functions/pwg.comments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ws_functions/pwg.comments.php b/include/ws_functions/pwg.comments.php index dea581181..da880c957 100644 --- a/include/ws_functions/pwg.comments.php +++ b/include/ws_functions/pwg.comments.php @@ -142,7 +142,7 @@ SELECT } else { - $author_name = stripslashes($row['username']); + $author_name = stripslashes($row['username'] ?? $row['author'] ?? l10n('guest')); } $list[] = array(