diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-09-10 19:30:34 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-09-10 19:30:34 +0000 |
commit | b9633dcdede3dcc3e9466382dbed6b1fb7603bee (patch) | |
tree | 4f8afec588da7d6e1cc9f756a0953c91410d6229 /modules/node/node.module | |
parent | 81591038cb845c13286b74adbeac3665fcf3aff9 (diff) | |
download | brdo-b9633dcdede3dcc3e9466382dbed6b1fb7603bee.tar.gz brdo-b9633dcdede3dcc3e9466382dbed6b1fb7603bee.tar.bz2 |
- Patch by Bart Jansen:
<quote>
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");
</quote>
I repeat:
"This adds session support for anonymous users and fixes a bug/typo."
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |