Commit 9f1f0c22 authored by Kevin Ditscheid's avatar Kevin Ditscheid

[BUGFIX] Do not use count for getRecortLocalization results, because it can return FALSE

parent 9c60241e
......@@ -66,7 +66,7 @@ class PageLayoutController {
$sourceUrls[] = rtrim($languageBase->getPath(), '/') . '/' . ltrim($pageRow['slug'], '/');
} else {
$translatedRowSearch = BackendUtility::getRecordLocalization('pages', $pageId, $languageId);
if (\count($translatedRowSearch)) {
if ($translatedRowSearch) {
$translatedRow = $translatedRowSearch[0];
$sourceUrls[] = rtrim($languageBase->getPath(), '/') . '/' . ltrim($translatedRow['slug'], '/');
}
......
Markdown is supported
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