Skip to content

Commit c59b9aa

Browse files
committed
Actually show the "by author" info when it's not null.
1 parent 5fa41f5 commit c59b9aa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

htdocs/devinfo/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@
7979
print("<ul class=\"rssfeeditems\">\n");
8080
foreach ($feed->get_items() as $item) { //for the last timeline items...
8181
if ($author = $item->get_author()) {
82-
$author = trim($author->get_name());
82+
$author = "by <strong>".trim($author->get_name())."</strong>";
8383
} else {
84-
$author = 'anonymous';
84+
$author = null;
8585
}
86-
print(" <li><a href=\"".$item->get_link()."\">".$item->get_title()."</a> <em>by <strong>".$author."</strong> on ".$item->get_date('Y-m-d')."</em></li>\n");
86+
print(" <li><a href=\"".$item->get_link()."\">".$item->get_title()."</a> <em>".$author." on ".$item->get_date('Y-m-d')."</em></li>\n");
8787
}
8888
print("</ul>\n");
8989
?>

0 commit comments

Comments
 (0)