Hi.. i create a group in my buddylist and checked my buddy so that my buddy will be added in my group. but an warning message appeared.

* warning: Invalid argument supplied for foreach() in /buddylist.module on line 638.

in the buddylist module

foreach ($groups as $label_id => $checked)

this is the code.. on line 638

CommentFileSizeAuthor
#2 buddy_groups.patch868 bytesquicksketch

Comments

quicksketch’s picture

Assigned: Unassigned » quicksketch

I've confirmed this problem. I'm looking into it.

quicksketch’s picture

StatusFileSize
new868 bytes

The foreach() function was iterating through information not applying to the checked groups. This patch loops only through the correct parts of the form.

quicksketch’s picture

Priority: Critical » Normal
Status: Active » Needs review

Normal priority, since the adding still works even with the errors

quicksketch’s picture

Status: Needs review » Fixed

Committed to CVS HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)
uknewperson’s picture

Version: » 4.7.x-1.x-dev

Hi,

I've just installed Buddlylist and have got the same error message. What is the simpliest way for a newby to actually apply the "patch"? ( Never applied a patch before ..only installed about 5 modules ) . I'm hosting on a shared server with no shell access and use phpadmin. Do I have to open a certain line and replace lines using a text editor?