When trying to get the feed (ex blog/3/feed) for a user without any blog posts, a php error shows up in the logging:

Undefined variable: items in /var/www/D6_testpatches/modules/blog/blog.pages.inc on line 69.

Solution: in blog_feed_user() $items should be defined as an array even when there are no items

See the attached patch (ony 1 line added)

CommentFileSizeAuthor
blog_feed_undefined_var.patch628 bytesJo Wouters
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dries’s picture

Status: Needs review » Fixed

Committed to CVS HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.