Some more index / fatal erros fixed

This commit is contained in:
Michael 2022-08-16 11:23:47 +00:00
parent bb52e5a804
commit 3e2c684319
5 changed files with 5 additions and 2 deletions

View file

@ -40,7 +40,7 @@ class Profile extends BaseModule
$a = DI::app();
// Ensure we've got a profile owner if updating.
$a->setProfileOwner($_GET['p'] ?? 0);
$a->setProfileOwner((int)($_GET['p'] ?? 0));
if (DI::config()->get('system', 'block_public') && !local_user() && !Session::getRemoteContactID($a->getProfileOwner())) {
throw new ForbiddenException();