[BUGFIX] linkvalidator: Add headline fallback to prevent NULL on insert
[Packages/TYPO3.CMS.git] / typo3 / sysext / linkvalidator / Classes / LinkAnalyzer.php
index fbd9a71..3c1ba08 100644 (file)
@@ -163,7 +163,7 @@ class LinkAnalyzer {
                                        foreach ($results[$key] as $entryKey => $entryValue) {
                                                $table = $entryValue['table'];
                                                $record = array();
-                                               $record['headline'] = $entryValue['row'][$GLOBALS['TCA'][$table]['ctrl']['label']];
+                                               $record['headline'] = BackendUtility::getRecordTitle($table, $entryValue['row']);
                                                $record['record_pid'] = $entryValue['row']['pid'];
                                                $record['record_uid'] = $entryValue['uid'];
                                                $record['table_name'] = $table;