Skip to content
Snippets Groups Projects
Commit f747ae92 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

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

parent cf723f90
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,7 @@ class TranslationLinksViewHelper extends AbstractViewHelper { ...@@ -109,7 +109,7 @@ class TranslationLinksViewHelper extends AbstractViewHelper {
} else { } else {
$translationTable = $table; $translationTable = $table;
$translatedRows = BackendUtility::getRecordLocalization($table, $uid, $languageUid); $translatedRows = BackendUtility::getRecordLocalization($table, $uid, $languageUid);
if (count($translatedRows)) { if ($translatedRows) {
$translatedUid = (int) $translatedRows[0]['uid']; $translatedUid = (int) $translatedRows[0]['uid'];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment