Actions
Bug #99163
closedPageRepository - Undefined array key "doktype" & "shortcut_mode"
Start date:
2022-11-22
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
I use the function getMenu() of TYPO3\CMS\Core\Domain\Repository\PageRepository and get the following two errors with PHP 8.1
Exception: PHP Warning: Undefined array key "doktype" in /var/www/typo3_src-11.5.19/typo3/sysext/core/Classes/Domain/Repository/PageRepository.php line 943
Exception: PHP Warning: Undefined array key "shortcut_mode" in /var/www/typo3_src-11.5.19/typo3/sysext/core/Classes/Domain/Repository/PageRepository.php line 944
You have already fixed it on other places.
(int)($pageRec['doktype'] ?? 0)
(int)($page['shortcut_mode'] ?? self::SHORTCUT_MODE_NONE)
Actions