Fixed error on profile when non-existent user is specified.
This commit is contained in:
parent
6d72906851
commit
284230a84c
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,8 @@ try {
|
|||
$profileUser = User::findForProfile($userId);
|
||||
} catch(UserNotFoundException $ex) {
|
||||
http_response_code(404);
|
||||
Template::render('profile.index');
|
||||
//Template::render('profile.index');
|
||||
echo 'User not found.';
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue