Fixed error on profile when non-existent user is specified.

This commit is contained in:
flash 2021-07-30 22:00:45 +00:00
parent 6d72906851
commit 284230a84c

View file

@ -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;
}