aboutsummaryrefslogtreecommitdiffstats
path: root/admin/comments.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/comments.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/admin/comments.php b/admin/comments.php
index dc9e584ac..11104be2b 100644
--- a/admin/comments.php
+++ b/admin/comments.php
@@ -84,7 +84,9 @@ function display_pictures( $mysql_result, $maxtime, $validation_box = false )
while ( $subrow = mysql_fetch_array( $subresult ) )
{
$vtp->addSession( $sub, 'comment' );
- $vtp->setVar( $sub, 'comment.author', $subrow['author'] );
+ $author = $subrow['author'];
+ if ( $subrow['author'] == '' ) $author = $lang['guest'];
+ $vtp->setVar( $sub, 'comment.author', $author );
$displayed_date = format_date( $subrow['date'], 'unix', true );
$vtp->setVar( $sub, 'comment.date', $displayed_date );
$vtp->setVar( $sub, 'comment.content', nl2br( $subrow['content'] ) );