Issue Bug Closed

#102063Undefined array key "editlock" in DatabaseRecordList

Guido Schmechel 09/28/23, 19:32 updated 07/09/24, 15:19

Description

Core: Error handler (BE): PHP Warning: Undefined array key “editlock” in /typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php line 2304

https://github.com/TYPO3/typo3/blob/11.5/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php#L2304

It should still be checked whether $row also exists with this key

elseif (isset($GLOBALS['TCA'][$table]['ctrl']['editlock']) && $row[$GLOBALS['TCA'][$table]['ctrl']['editlock']]) {

->

elseif (isset($GLOBALS['TCA'][$table]['ctrl']['editlock']) && isset($row[$GLOBALS['TCA'][$table]['ctrl']['editlock']]) && $row[$GLOBALS['TCA'][$table]['ctrl']['editlock']]) {

Reviews 3