Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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).
Comment | File | Size | Author |
---|---|---|---|
#1 | nodequeue-fixed-return-value-1959692-1.patch | 961 bytes | arnested |
Comments
Comment #1
arnested CreditAttribution: arnested commentedComment #3
fizk CreditAttribution: fizk commentedCommitted, thanks!