diff --git a/public/profile.php b/public/profile.php index fb6a297f..a2b43ca4 100644 --- a/public/profile.php +++ b/public/profile.php @@ -28,6 +28,12 @@ try { return; } +if($profileUser->isDeleted()) { + http_response_code(404); + echo 'User not found.'; + return; +} + $notices = []; $currentUser = User::getCurrent();