From 4ff202a180700ecf9c93d81a0b484e811e5dd0ad Mon Sep 17 00:00:00 2001 From: Michael Kettel Date: Fri, 12 May 2023 11:24:21 +0200 Subject: [PATCH] Update ButtonBarHook.php Fix for the following error: On click of the pageroot in the TYPO3 pagetree, the following error shows up. PHP Warning: Trying to access array offset on value of type null in /var/www/html/typo3/public/typo3conf/ext/wv_deepltranslate/Classes/Hooks/ButtonBarHook.php line 40 --- Classes/Hooks/ButtonBarHook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Hooks/ButtonBarHook.php b/Classes/Hooks/ButtonBarHook.php index 9e711617..29eb7fdd 100644 --- a/Classes/Hooks/ButtonBarHook.php +++ b/Classes/Hooks/ButtonBarHook.php @@ -37,7 +37,7 @@ public function getButtons(array $params, ButtonBar $buttonBar) ); if ( - $page['module'] === 'glossary' + isset($page['module']) && $page['module'] === 'glossary' && $this->getBackendUserAuthentication() ->check('tables_modify', 'tx_wvdeepltranslate_glossaryentry') ) {