Merge pull request #283 from danbarretodev/7072

Update $extras array keys doesn't contain 'extra_' then substr($key , 6)...
1.9.x
Yannick Warnier 11 years ago
commit 26a4b9ab31
  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