array_shift error on nodequeue_view_random_node

William Haller - June 12, 2009 - 19:06
Project:Nodequeue
Version:6.x-2.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

The new code throws a PHP error for

array_shift(): The argument should be an array in nodequeue.module on line 2593.

Removing the array_shift and returning this line of code to the previous version fixes the problem. Not sure of the reason why it was changed or the effects of reverting, but it doesn't work as it is.

#1

ezra-g - June 14, 2009 - 01:10
Priority:critical» normal
Status:active» needs review

The attached patch fixes the problem. Does this resolve the problem for you?

AttachmentSize
490130.patch 855 bytes

#2

ezra-g - June 28, 2009 - 16:39
Title:Latest update breaks nodequeue_view_random_node» array_shift error on nodequeue_view_random_node
Status:needs review» fixed

This is committed.

#3

System Message - July 12, 2009 - 16:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.