Fix admin/deaths (Closes #1127)
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Fri, 25 Jun 2010 08:51:39 +0000 (10:51 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Fri, 25 Jun 2010 09:28:20 +0000 (11:28 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
modules/admin.php

index e01a23a..3c0cb27 100644 (file)
@@ -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);
                 }