]> git.mjollnir.org Git - s9y.git/commitdiff
empty authors shall be ANONYMOUS
authorgarvinhicking <garvinhicking>
Mon, 24 Jul 2006 08:35:27 +0000 (08:35 +0000)
committergarvinhicking <garvinhicking>
Mon, 24 Jul 2006 08:35:27 +0000 (08:35 +0000)
include/functions_rss.inc.php

index 84ea52d235758645d13a086032277be684834110..e9a8f3c207e728ed6deb111fdba2c33bb05cbc35 100644 (file)
@@ -41,7 +41,7 @@ function serendipity_printEntries_rss(&$entries, $version, $comments = false, $f
             $entry['feed_entryLink'] = serendipity_archiveURL($entry['feed_id'], $entry['title'], 'baseURL', true, array('timestamp' => $entry['timestamp']));
             if ($options['comments'] == true) {
                 // Display username as part of the title for easier feed-readability
-                $entry['title'] = $entry['author'] . ': ' . $entry['title'];
+                $entry['title'] = (!empty($entry['author']) ? $entry['author'] : ANONYMOUS) . ': ' . $entry['title'];
             }
 
             // Embed a link to extended entry, if existing