Update $extras array keys doesn't contain 'extra_' then substr($key , 6) is useless -refs #7072

1.9.x
Daniel Barreto 11 years ago
parent 3bacc90266
commit 484f98b822
  1. 4
      main/auth/profile.php

@ -639,10 +639,10 @@ if ($form->validate()) {
if (array_key_exists('name', $value)) {
$value['name'] = Security::filter_filename($value['name']);
}
UserManager::update_extra_field_value($user_id, substr($key, 6), $value);
UserManager::update_extra_field_value($user_id, $key, $value);
}
} else {
UserManager::update_extra_field_value($user_id, substr($key, 6), $value);
UserManager::update_extra_field_value($user_id, $key, $value);
}
}
}

Loading…
Cancel
Save