From 15e451c23112cbb2be814f02fae51c4fbe1ee560 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 15 Jan 2026 14:19:04 +0100 Subject: [PATCH] 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(