diff options
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r-- | modules/blog/blog.module | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index e4b14a438..d1543d4cf 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -88,7 +88,11 @@ function blog_feed_user($uid = 0) { $channel['title'] = $account->name ."'s blog"; $channel['link'] = url("blog/$uid", array('absolute' => TRUE)); $channel['description'] = $term->description; - node_feed($result, $channel); + + while ($row = db_fetch_object($result)) { + $items[] = $row->nid; + } + node_feed($items, $channel); } /** @@ -99,7 +103,12 @@ function blog_feed_last() { $channel['title'] = variable_get('site_name', 'Drupal') .' blogs'; $channel['link'] = url('blog', array('absolute' => TRUE)); $channel['description'] = $term->description; - node_feed($result, $channel); + + while ($row = db_fetch_object($result)) { + $items[] = $row->nid; + } + + node_feed($items, $channel); } /** |