Some more index / fatal erros fixed

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

View file

@ -58,7 +58,7 @@ class Pager
$this->setQueryString($queryString);
$this->setItemsPerPage($itemsPerPage);
$this->setPage(($_GET['page'] ?? 0) ?: 1);
$this->setPage((int)($_GET['page'] ?? 0) ?: 1);
}
/**

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();