Skip to content

Commit

Permalink
[BUGFIX] Fix broken icon for groups with allowed all tables
Browse files Browse the repository at this point in the history
This fixes the wrong comparison with the key instead of the value
in the foreach loop.

Fixes: #89694
Releases: master, 9.5, 8.7
Change-Id: I6d1d4b9d89a9ac0db1215245b39edb23b3a888f8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63237
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
  • Loading branch information
nhovratov authored and georgringer committed Feb 14, 2020
1 parent e34d152 commit c46e56e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function render(): array
$allowed = GeneralUtility::trimExplode(',', $config['allowed'], true);
$allowedTablesHtml = [];
foreach ($allowed as $tableName) {
if ($allowed === '*') {
if ($tableName === '*') {
$label = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.allTables');
$allowedTablesHtml[] = '<span>';
$allowedTablesHtml[] = htmlspecialchars($label);
Expand Down

0 comments on commit c46e56e

Please sign in to comment.