}
if (Config::get('system', 'block_public') && !local_user() && !remote_user()) {
- return;
+ System::httpExit(403, ['title' => L10n::t('Access denied.')]);
}
if ($a->argc < 2) {
- System::httpExit(403, ["title" => L10n::t('Access denied.')]);
+ System::httpExit(403, ['title' => L10n::t('Access denied.')]);
}
Nav::setSelected('events');
$nick = $a->argv[1];
$user = DBA::selectFirst('user', [], ['nickname' => $nick, 'blocked' => false]);
if (!DBA::isResult($user)) {
- return;
+ System::httpExit(404, ['title' => L10n::t('Page not found.')]);
}
$a->data['user'] = $user;