Closed (duplicate)
Project:
Avatar Selection
Version:
5.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
9 Oct 2007 at 04:07 UTC
Updated:
9 Oct 2007 at 22:46 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| avatar_selection.module.diff | 791 bytes | gold |
Comments
Comment #1
stella commentedduplicate of #162439. Patch already supplied in that issue and fixed in CVS.
Cheers,
Stella
Comment #2
goldBugger. 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.
Comment #3
stella commentedHi,
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