This notice is popping up in a couple places:

Notice: Undefined variable: edit_user in masquerade_form_alter() (line 385 of /.../sites/all/modules/contrib/masquerade/masquerade.module).
Notice: Trying to get property of non-object in masquerade_user_update() (line 435 of /.../sites/all/modules/contrib/masquerade/masquerade.module).

These are generated when saving the user profile page. It looks like the code is using the $edit_user variable, but that hasn't been defined anywhere. The attached patch is an attempt to fix that.

CommentFileSizeAuthor
#1 masquerade_997452.patch1003 byteshadsie

Comments

hadsie’s picture

StatusFileSize
new1003 bytes
afreeman’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for the patch! The supplied patch applies cleanly and clears the error in question. It also doesn't appear to break anything that was already working.

afreeman’s picture

Status: Reviewed & tested by the community » Fixed

Patch committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 54017fd on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by afreeman:
    #997452 by hadsie: Clears error when saving user profile form.
    
    

  • Commit 54017fd on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by afreeman:
    #997452 by hadsie: Clears error when saving user profile form.