diff --git a/Classes/Utility/DeeplBackendUtility.php b/Classes/Utility/DeeplBackendUtility.php index d311800f..9fe46de1 100644 --- a/Classes/Utility/DeeplBackendUtility.php +++ b/Classes/Utility/DeeplBackendUtility.php @@ -355,9 +355,10 @@ public static function detectCurrentPage(): array [$id] = array_keys($values); if ($possibleTable === 'pages') { self::$currentPage = self::getPageRecord($id); + } else { + $pageId = self::getPageIdFromRecord($possibleTable, $id); + self::$currentPage = self::getPageRecord($pageId); } - $pageId = self::getPageIdFromRecord($possibleTable, $id); - self::$currentPage = self::getPageRecord($pageId); } }