The first line should read:

if ($form_id != 'user_profile_form' && $form_id != 'user_edit') {

and not

if ($form_id != 'user_profile_form' || $form_id != 'user_edit') {

Comments

deekayen’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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