diff --git a/typo3/sysext/backend/Classes/Form/FieldWizard/TableList.php b/typo3/sysext/backend/Classes/Form/FieldWizard/TableList.php
index bae20a2b25fd6f3c37fbfcd08fcc5bc050d32e0a..2582dc5d65290b08e17971eacad3abcd7d914a1d 100644
--- a/typo3/sysext/backend/Classes/Form/FieldWizard/TableList.php
+++ b/typo3/sysext/backend/Classes/Form/FieldWizard/TableList.php
@@ -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);