Closed (fixed)
Project:
Avatar Selection
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Apr 2012 at 12:18 UTC
Updated:
17 Aug 2012 at 12:00 UTC
Hi, I just enabled the module and so far everything works fine except one thing. I'm using profile2 module and on the profile add/edit page I get error message:
Notice: Undefined index: picture in avatar_selection_form_user_profile_form_alter() (line 266.... in avatar_selection.module
I checked this line and there is check:
if (is_array($form['picture'])) {
....
in this case $form['picture'] does not exist
simple fix - change this line to :
if (isset($form['picture']) && is_array($form['picture'])) {
Comments
Comment #1
stella commentedPatch committed, with a small alteration, thanks!
Comment #3
warmth commentedAny news?