X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fdeleteuser.php;h=48ad9272e04b8a10f30caef25edadda02fdb6385;hb=848d5137062ba0223f389f4bf963ab8e0c5b9473;hp=19b1e20e833ab918843269905c26762da2a99ef4;hpb=8884a5255fb90fda67b63fa0d4252d77176337e5;p=quix0rs-gnu-social.git diff --git a/actions/deleteuser.php b/actions/deleteuser.php index 19b1e20e83..48ad9272e0 100644 --- a/actions/deleteuser.php +++ b/actions/deleteuser.php @@ -64,15 +64,13 @@ class DeleteuserAction extends ProfileFormAction if (!$cur->hasRight(Right::DELETEUSER)) { // TRANS: Client error displayed when trying to delete a user without having the right to delete users. $this->clientError(_('You cannot delete users.')); - return false; } - $this->user = User::staticGet('id', $this->profile->id); + $this->user = User::getKV('id', $this->profile->id); if (empty($this->user)) { // TRANS: Client error displayed when trying to delete a non-local user. $this->clientError(_('You can only delete local users.')); - return false; } return true;