From 2834e947082cf1157a6ae13d9d21bf40884063ca Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sat, 7 Jan 2012 15:50:07 +1100 Subject: [PATCH] display ??? next to messages from an unknown (deleted?) sender --- mod.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod.php b/mod.php index b2b464ad..3728c1ed 100644 --- a/mod.php +++ b/mod.php @@ -729,7 +729,9 @@ while($pm = $query->fetch()) { $body .= '' . '' . $pm['id'] . '' . - '' . $pm['username'] . '' . + ($pm['username'] ? + '' . $pm['username'] . '' + : '???') . '' . strftime($config['post_date'], $pm['time']) . '' . '' . pm_snippet($pm['message']) . '' . '';