diff --git a/public/profile.php b/public/profile.php index 7c3de385..3cf69c20 100644 --- a/public/profile.php +++ b/public/profile.php @@ -7,9 +7,9 @@ $isEditing = !empty($_GET['edit']) && is_string($_GET['edit']) ? (bool)$_GET['ed $userId = user_find_for_profile($userId); -if ($userId < 1) { +if($userId < 1) { http_response_code(404); - echo tpl_render('user.notfound'); + echo tpl_render('profile.index'); return; } diff --git a/templates/profile/_layout/header.twig b/templates/profile/_layout/header.twig index 406c4415..ddc0dd87 100644 --- a/templates/profile/_layout/header.twig +++ b/templates/profile/_layout/header.twig @@ -28,25 +28,34 @@
Check the url and try again.
-