issue/activity: author footer below messages
[minimedit.git] / widget / issue / activity.php
index cd99e486916af3e58e888fdc1ed6080fd226a9de..f09cdc742fd492d2b1178070e6361e79dd84c07f 100644 (file)
@@ -14,7 +14,6 @@ print '<dl class="replies">';
 
 $group = NULL;
 while ($row = $query->fetch()) {
-       $rowuser = new User("profile/{$row->author}");
        if ($group !== $row->issue) {
                $group = $row->issue;
                print '<dt>';
@@ -25,10 +24,15 @@ while ($row = $query->fetch()) {
                print '</dt>';
        }
        print '<dd>';
-       printf('<strong>%s</strong> <small class="date">%s</small>',
-               $rowuser->html, showdate(preg_split('/\D/', $row->created))
+       printf("<blockquote>%s</blockquote>\n\t", $row->message);
+       print '<span class="right">';
+       if ($row->author and $rowuser = new User("profile/{$row->author}")) {
+               printf('<strong>%s</strong> ', $rowuser->html);
+       }
+       printf('<small class="date">%s</small>',
+               showdate(preg_split('/\D/', $row->created))
        );
-       printf("\n\t<blockquote>%s</blockquote>", $row->message);
+       print "</span>";
        print "</dd>\n";
 }