print nodequeue_node_titles($subqueue_id);
Doing this for a queue that is empty will result in a foreach error:
warning: Invalid argument supplied for foreach() in <path>/nodequeue.module on line 2517.
nodequeue_view_nodes() should either ensure that $nodes is an array, or nodequeue_load_nodes() should always return an array.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | nodequeue.module.patch | 340 bytes | Anonymous (not verified) |
Comments
Comment #1
ezra-g commentedGood point. would you like to submit a patch for this?
Comment #2
Anonymous (not verified) commentedHere you go...
Comment #3
ezra-g commentedMarking as needs review.
Comment #4
ezra-g commentedCommitted to Drupal 5 and 6 branches.
Thanks!