concrete5/concrete5 — pull request #221 by arcanepain (2011-11-22 10:22:54+00:00)
Title: Fix Avatar upload on add new user

When specifying an Avatar via the 'add user' dashboard interface for new users, would fail with 'call to member function on non-object' for updateUserAvatar function. Calling the concrete/avatar helper before the call rectifies the problem.

Maybe this makes the call setting the $av variable in the on_start function redundant? Left in there for now. All seems to work the way i've set it now (matching the 'edit user' controller's add/update avatar method, basically).