Hit admin/settings/avatar_selection/edit and select an image and click edit.

Clicking delete produces the following error;
warning: Invalid argument supplied for foreach() in /home/cmcnetnz/www/sites/all/modules/avatar_selection/avatar_selection.module on line 521.

In this instance $form_values['images'] doesn't exist. $form_values['select_avatar'] does contain the path to the file to be deleted though.

Konqueror was the browser.

Patch attached.

CommentFileSizeAuthor
avatar_selection.module.diff791 bytesgold

Comments

stella’s picture

Assigned: Unassigned » stella
Status: Active » Closed (duplicate)

duplicate of #162439. Patch already supplied in that issue and fixed in CVS.

Cheers,
Stella

gold’s picture

Bugger. Sorry. Thought I checked but juggling 5-6 things at once is taking it's toll I guess.

I grabbed this from the modules page. How often do updates in CVS get rolled into the module archives that are downloaded from the module pages? I imagine that there's a lot of people that grab the modules there and give up as they're not coders.

stella’s picture

Hi,

It's no problem, we all end up doing it every so often. CVS versions get rolled into the dev versions once every 12 hours, so if you just download that it'll work fine - well at least for this module, cos I only ever check-in working code. A new official release of the module will be coming soon.

Cheers,
Stella