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.

CommentFileSizeAuthor
#2 nodequeue.module.patch340 bytesAnonymous (not verified)

Comments

ezra-g’s picture

Good point. would you like to submit a patch for this?

Anonymous’s picture

Version: 6.x-2.1 » 6.x-2.3
Status: Active » Patch (to be ported)
StatusFileSize
new340 bytes

Here you go...

ezra-g’s picture

Status: Patch (to be ported) » Needs review

Marking as needs review.

ezra-g’s picture

Status: Needs review » Fixed

Committed to Drupal 5 and 6 branches.

Thanks!

Status: Fixed » Closed (fixed)

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