[BUGFIX] Refactor record querying in deep nested structures in recycler
[Packages/TYPO3.CMS.git] / typo3 / sysext / recycler / Classes / Domain / Model / Tables.php
index c7e91ea..e4a59f4 100644 (file)
@@ -28,7 +28,7 @@ class Tables
      *
      * @param int $startUid UID from selected page
      * @param int $depth How many levels recursive
-     * @return string The tables to be displayed
+     * @return array The tables to be displayed
      */
     public function getTables($startUid, $depth = 0)
     {
@@ -64,7 +64,7 @@ class Tables
                             $tables[] = [
                                 $tableName,
                                 $deletedRecordsInTable,
-                                $lang->sL($GLOBALS['TCA'][$tableName]['ctrl']['title'])
+                                $lang->sL($GLOBALS['TCA'][$tableName]['ctrl']['title'] ?? $tableName)
                             ];
                         }
                     }
@@ -75,7 +75,7 @@ class Tables
         array_unshift($jsonArray, [
             '',
             $deletedRecordsTotal,
-            $lang->sL('LLL:EXT:recycler/mod1/locallang.xlf:label_allrecordtypes')
+            $lang->sL('LLL:EXT:recycler/Resources/Private/Language/locallang.xlf:label_allrecordtypes')
         ]);
         return $jsonArray;
     }