Posted by khawaja on February 18, 2009 at 8:35am
| Project: | Blog reactions |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Every time I preview a node I get the following warning:
warning: Invalid argument supplied for foreach() in /home/powrslns/public_html/kookyguides.com/sites/all/modules/blog_reactions/blog_reactions.module on line 451.
Everything seems to be working fine, regardless.
Comments
#1
the problem is that node_preview doesn't load the item, so $node->blog_reactions['items'] is really empty, and then foreach fails.
here is a patch which checks first for $node->blog_reactions
#2
Commited to 6-dev.
Backported to 5-dev.
Thanks.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.