mirror of
https://github.com/friendica/friendica
synced 2024-12-23 02:00:17 +00:00
Fix missing $a->data['user'] in mod/cal
This commit is contained in:
parent
ef1c73fb6b
commit
fb39124301
1 changed files with 3 additions and 3 deletions
|
@ -29,11 +29,11 @@ function cal_init(App $a)
|
|||
}
|
||||
|
||||
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');
|
||||
|
@ -41,7 +41,7 @@ function cal_init(App $a)
|
|||
$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;
|
||||
|
|
Loading…
Reference in a new issue