From: Raphaël Barrois Date: Fri, 25 Jun 2010 08:51:39 +0000 (+0200) Subject: Fix admin/deaths (Closes #1127) X-Git-Tag: xorg/1.0.0~30 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=438b7a0c2a1b5c04ea3222fc3871a96882992eb5;p=platal.git Fix admin/deaths (Closes #1127) Signed-off-by: Raphaël Barrois --- diff --git a/modules/admin.php b/modules/admin.php index e01a23a..3c0cb27 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -919,7 +919,7 @@ class AdminModule extends PLModule WHERE pid = {?}', $val, $pid); $page->trigSuccess('Ajout du décès de ' . $name . ' le ' . $val . '.'); if($death == '0000-00-00' || empty($death)) { - $profile = Profile::getPID($pid); + $profile = Profile::get($pid); $profile->clear(); $profile->owner()->clear(false); }