summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-01-07 15:50:07 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-01-07 15:50:07 +1100
commit2834e947082cf1157a6ae13d9d21bf40884063ca (patch)
tree17de3863c02bf1818e5029fb599b83a931842f5b
parent046b6cfebf3954a18f1742cca2a8ebd890798c3c (diff)
display ??? next to messages from an unknown (deleted?) sender
-rw-r--r--mod.php4
1 files changed, 3 insertions, 1 deletions
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 .= '<tr' . ($pm['unread'] ? ' style="font-weight:bold"' : '') . '>' .
'<td class="minimal"><a href="?/PM/' . $pm['id'] . '">' . $pm['id'] . '</a></td>' .
- '<td class="minimal"><a href="?/new_PM/' . $pm['sender'] . '">' . $pm['username'] . '</a></td>' .
+ ($pm['username'] ?
+ '<td class="minimal"><a href="?/new_PM/' . $pm['sender'] . '">' . $pm['username'] . '</a></td>'
+ : '<em>???</em>') .
'<td class="minimal">' . strftime($config['post_date'], $pm['time']) . '</td>' .
'<td><a href="?/PM/' . $pm['id'] . '">' . pm_snippet($pm['message']) . '</a></td>' .
'</tr>';