Closed (fixed)
Project:
Nodequeue
Version:
6.x-2.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2009 at 01:57 UTC
Updated:
1 Dec 2009 at 02:10 UTC
Whenever Solr indexes a node that is not within any queue, it causes a foreach() error.
# warning: Invalid argument supplied for foreach() in /var/www/sites/all/modules/contrib/nodequeue/nodequeue.module on line 358.
This patch makes Nodequeue consistently return an array in the nodequeue_get_subqueues_by_node() function, which makes sense that it would return an empty array if there aren't any subqueues.
| Comment | File | Size | Author |
|---|---|---|---|
| nodequeue_foreach_error.patch | 436 bytes | quicksketch |
Comments
Comment #1
ezra-g commentedLooks good. This is committed. Thanks!