if (Post::has('account_deletion_confirmation')) {
$uid = $user->id();
$name = $user->fullName();
- $user->profile()->clear();
+ $profile = $user->profile();
+ if ($profile) {
+ $user->profile()->clear();
+ }
$user->clear(true);
$page->trigSuccess("L'utilisateur $name ($uid) a bien été supprimé.");
}
// where several copies of the site use the same DB, but not the same "dynamic configuration"
global $globals;
$globals->updateNbValid();
- $page->assign('vit', new ValidateIterator());
+ $page->assign('vit', Validate::iterate());
}
function handler_validate_answers(&$page, $action = 'list', $id = null)