Skip to content

Commit

Permalink
BUGFIX: PHP Warning Undefined array key "table"
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanowak authored Mar 4, 2023
1 parent e1a5eba commit ec23905
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Hooks/DataHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ public function clearCachePostProc(array $params, \TYPO3\CMS\Core\DataHandling\D
return;
}

if (!array_key_exists('table', $params)) {
return;
}

if (isset($dataHandler->datamap[$params['table']][$params['uid']]['l10n_parent'])) {
$this->tagsToFlush[] = $params['table'] . '_' . $dataHandler->datamap[$params['table']][$params['uid']]['l10n_parent'];
}
Expand Down

0 comments on commit ec23905

Please sign in to comment.