diff --git a/Classes/Utility/DeeplBackendUtility.php b/Classes/Utility/DeeplBackendUtility.php index 88fcaca4..80188311 100644 --- a/Classes/Utility/DeeplBackendUtility.php +++ b/Classes/Utility/DeeplBackendUtility.php @@ -272,9 +272,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); } }