Skip to content

Commit

Permalink
Merge pull request #6 from twoldanski/bugfix/tcemainnotice
Browse files Browse the repository at this point in the history
[BUGFIX] fix warning on PHP8/v11
  • Loading branch information
lukaszuznanski authored Jun 28, 2022
2 parents 06e938f + 774f4ef commit 5629eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Hooks/TceMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function clearCacheCmd($params, &$parent): void
{
$backendUser = $this->getBackendUser();
if ($backendUser->isAdmin() || $backendUser->getTSConfig()) {
$this->cacheManager->clearCache($params['cacheCmd']);
$this->cacheManager->clearCache($params['cacheCmd'] ?? null);
}
}

Expand Down

0 comments on commit 5629eae

Please sign in to comment.