Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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)
Comment | File | Size | Author |
---|---|---|---|
blog_feed_undefined_var.patch | 628 bytes | Jo Wouters | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #2
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.