]> git.mjollnir.org Git - s9y.git/commitdiff
Add feed_guid only, if not set externaly prior
authorbrockhaus <brockhaus>
Mon, 17 Mar 2008 19:01:38 +0000 (19:01 +0000)
committerbrockhaus <brockhaus>
Mon, 17 Mar 2008 19:01:38 +0000 (19:01 +0000)
include/functions_rss.inc.php

index 8e5a5809715644145cbc31902a34079b8520c9d6..43384e116c52cb5f77dc7da1a720ae269ed366f7 100644 (file)
@@ -48,7 +48,11 @@ function serendipity_printEntries_rss(&$entries, $version, $comments = false, $f
             }
 
             $entry['feed_id']   = (isset($entry['entryid']) && !empty($entry['entryid']) ? $entry['entryid'] : $entry['id']);
-            $entry['feed_guid'] = serendipity_rss_getguid($entry, $options['comments']);
+            
+            // set feed guid only, if not already defined externaly
+            if (empty($entry['feed_guid']))
+                $entry['feed_guid'] = serendipity_rss_getguid($entry, $options['comments']);
+
             $entry['feed_entryLink'] = serendipity_archiveURL($entry['feed_id'], $entry['title'], 'baseURL', true, array('timestamp' => $e_ts));
             if ($options['comments'] == true) {
                 // Display username as part of the title for easier feed-readability