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

index 8e5a5809715644145cbc31902a34079b8520c9d6..0f1acfd9f079bbe8b59191b680b9ee7a122f0575 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