#99648The method getPageAndRootline in TypoScriptFrontendController can throw the PHP warning : Undefined array key "hidden" in ...
Description
In the TypoScriptFrontendController there is the following code:
if (!empty($hiddenField) && !$includeHiddenPages) {
// Page is "hidden" => 404 (deliberately done in default language, as this cascades to language overlays)
$rawPageRecord = $this->sys_page->getPage_noCheck($this->id);
$requestedPageIsHidden = (bool)$rawPageRecord[$hiddenField];
}
If a non-existing id is provided the $rawPageRecord will be the empty array and hence the line
$requestedPageIsHidden
will throw an error the line should instead be
$requestedPageIsHidden = (bool)(isset($rawPageRecord[$hiddenField] ?: false);
Reviews 3
History 312
-
Gerrit Code Review pushed patch set 1 for main to change 77504 status
NewUnder Review 01/19/23, 13:58 -
Gerrit Code Review pushed patch set 1 for main to change 77505 01/19/23, 14:32
-
Gerrit Code Review pushed patch set 2 for main to change 77505 01/19/23, 16:09
-
Gerrit Code Review pushed patch set 3 for main to change 77505 01/19/23, 16:10
-
Gerrit Code Review pushed patch set 4 for main to change 77505 01/23/23, 06:28
-
Gerrit Code Review pushed patch set 5 for main to change 77505 01/24/23, 05:58
-
Gerrit Code Review pushed patch set 6 for main to change 77505 01/24/23, 08:56
-
Thomas Hohn changed assigned to Thomas Hohn 02/28/23, 19:39
-
Gerrit Code Review pushed patch set 7 for main to change 77505 03/06/23, 05:41
-
Gerrit Code Review pushed patch set 1 for 11.5 to change 77968 03/06/23, 08:34
-
Thomas Hohn commented and changed status
Under ReviewResolved done0 %100 % 03/06/23, 08:40 -
Benni Mack changed status
ResolvedClosed 03/14/23, 11:47
Applied in changeset commit:8e52a486e01ef45c3e348f25e19ae0aa78fcbd75.