Skip to content
Snippets Groups Projects
Commit 7aecdcc8 authored by Thomas Hohn's avatar Thomas Hohn Committed by Christian Kuhn
Browse files

[BUGFIX] Fix PHP 8 warning in ElementHistoryController

If $elementUid is 0 in ElementHistoryController::getEditLockFromElement
it must be handled seperatly since the call to BackendUtility::getRecord
will return null.

Resolves: #100000
Releases: main, 11.5
Change-Id: Ib53a5d06cbb098b9548a8293337b365d768d8fa3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77914


Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 0d9cbd75
Branches
Tags
No related merge requests found
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