Skip to content

Commit

Permalink
38755: ilAccess::checkAccess(): Argument #3 () must be of type int, s…
Browse files Browse the repository at this point in the history
…tring given
  • Loading branch information
alex40724 committed Nov 15, 2023
1 parent b4b5fc0 commit a6ccb9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/ILIAS/Blog/classes/class.ilObjBlogGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -2701,10 +2701,10 @@ public static function _goto(string $a_target): void
$ilCtrl->setParameterByClass("ilRepositoryGUI", "edt", $id[2]);
}
}
if ($access->checkAccess("read", "", $id[0])) {
if ($access->checkAccess("read", "", (int) $id[0])) {
$ilCtrl->redirectByClass("ilRepositoryGUI", "preview");
}
if ($access->checkAccess("visible", "", $id[0])) {
if ($access->checkAccess("visible", "", (int) $id[0])) {
$ilCtrl->redirectByClass("ilRepositoryGUI", "infoScreen");
}
}
Expand Down

0 comments on commit a6ccb9a

Please sign in to comment.