subqueue_load() can yield an "Notice: Undefined variable: subqueues" if it is called with an empty array of sqid's.

Although are rare situation we experienced this when interfacing to the nodequeue module.

The fix is to initialize $subqueues to an empty array in the function.

I have attached a patch that fixes this an improves the function documentation a bit (added return value and adhere to current coding standards).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arnested’s picture

Status: Active » Needs review
FileSize
961 bytes

  • fizk committed cb78232 on 7.x-2.x
    Issue #1959692 by arnested: subqueue_load() could yield "Notice:...
fizk’s picture

Issue summary: View changes
Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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