X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fadmin.php;h=341d21c0112233d4938af4ae6f3f3ec91483a604;hb=184b012d1fb4d02b6f5e5ed9e11fcd6457a36b06;hp=4dff7a86bfc35c9a3e01d51db24ab4033818abef;hpb=889d98079cdcca4a527fbbcfc55e2e5f928b9acf;p=platal.git diff --git a/modules/admin.php b/modules/admin.php index 4dff7a8..341d21c 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -900,9 +900,9 @@ class AdminModule extends PLModule WHERE hrpid = {?}', $val, $pid); $page->trigSuccess('Ajout du décès de ' . $name . ' le ' . $val . '.'); if($death == '0000-00-00' || empty($death)) { - // TODO: FIX THIS DEPRECATED CALL - require_once('user.func.inc.php'); - user_clear_all_subs($uid, false); // by default, dead ppl do not loose their email + $profile = Profile::get($pid); + $profile->clear(); + $profile->owner()->clear(false); } } }