Commit c46e56e7 authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Georg Ringer
Browse files

[BUGFIX] Fix broken icon for groups with allowed all tables

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: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Tymoteusz Motylewski's avatarTymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent e34d152c
......@@ -50,7 +50,7 @@ class TableList extends AbstractNode
$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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment