diff --git a/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php index 5e3e16e2adee..12d23bab4116 100644 --- a/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php +++ b/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php @@ -2179,9 +2179,9 @@ protected function overlayEditLockPermissions($table, $row = [], $editPermission if (empty($row)) { return ($table === 'pages') || !$pageHasEditLock; } - if (($table === 'pages' && $row['editlock']) || ($table !== 'pages' && $pageHasEditLock)) { + if (($table === 'pages' && ($row['editlock'] ?? false)) || ($table !== 'pages' && $pageHasEditLock)) { $editPermission = false; - } elseif (isset($GLOBALS['TCA'][$table]['ctrl']['editlock']) && $row[$GLOBALS['TCA'][$table]['ctrl']['editlock']]) { + } elseif (isset($GLOBALS['TCA'][$table]['ctrl']['editlock']) && ($row[$GLOBALS['TCA'][$table]['ctrl']['editlock']] ?? false)) { $editPermission = false; } }