Download & Extend

php error - warning: array_shift: The argument should be an array (line 266)

Project:Smartqueue Per User
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:ezra-g
Status:closed (fixed)

Issue Summary

I installed nodequeue and this module, enabled them, then went to my account page while logged in as the admin and saw this error:

warning: array_shift() [function.array-shift]: The argument should be an array in /var/www/sites/all/modules/smartqueue_users/smartqueue_users.module on line 266.

Comments

#1

Status:active» needs review

Thanks for trying out this module!

That's happening because the admin user does not have a nodequeue. This patch should resolve the issue.

AttachmentSize
289752.patch 1.23 KB

#2

Status:needs review» reviewed & tested by the community

Committed. This will be cleared up in the next release. Leaving as RTBC until that release is made.

#3

Assigned to:Anonymous» ezra-g
Status:reviewed & tested by the community» fixed

New release will be available shortly.

#4

Version:5.x-0.3» 6.x-1.x-dev
Status:fixed» patch (to be ported)

#5

Status:patch (to be ported)» fixed

#6

Status:fixed» closed (fixed)

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