From b9633dcdede3dcc3e9466382dbed6b1fb7603bee Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 10 Sep 2003 19:30:34 +0000 Subject: - Patch by Bart Jansen: This adds session support for anonymous users and fixes a bug/typo. 1. changed rid for user #0 from 0 to 1 (rid 1 == anonymous user) to make inner join work. 2. replaced "if ($user .." by "if ($user->uid .." because now $user is always set (my previous change probably caused this). 3. db_next_id("user_uid") -> db_next_id("users_uid"); I repeat: "This adds session support for anonymous users and fixes a bug/typo." --- modules/node/node.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index 978b01839..77667b614 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -983,19 +983,19 @@ function node_feed($nodes = 0, $channel = array()) { /* ** Load the specified node: */ - + $item = node_load(array("nid" => $node->nid)); - + /* ** Transform the node information into an RSS item: */ - + $items .= format_rss_item($item->title, url(node_url($node)), ($item->teaser ? $item->teaser : $item->body)); /* ** Determine the publication date: */ - + if ($item->updated > $pubdate) { $pubdate = $item->updated; } -- cgit v1.2.3