From 438b7a0c2a1b5c04ea3222fc3871a96882992eb5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Fri, 25 Jun 2010 10:51:39 +0200 Subject: [PATCH] Fix admin/deaths (Closes #1127) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- modules/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.1.4