Fix link for displaying pending picture on profile (Closes #1166)
[platal.git] / 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);
                 }