From 7c8bc63d286aa881d14858b901cb58d19c720267 Mon Sep 17 00:00:00 2001 From: Markus Klein <markus.klein@typo3.org> Date: Tue, 26 May 2015 09:55:55 +0200 Subject: [PATCH] [BUGFIX] Add missing int-cast for checking uid zero The change #24250 introduced a strict comparison without ensuring proper data types on both sides of the comparison. Add the missing int-cast in \TYPO3\CMS\Backend\Tree\Pagetree\Commands Resolves: #67138 Releases: master,6.2 Change-Id: I51dc33fd64a6d42963237ac49e0385c2abf66b71 Reviewed-on: http://review.typo3.org/39727 Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Markus Klein <markus.klein@typo3.org> Tested-by: Markus Klein <markus.klein@typo3.org> --- typo3/sysext/backend/Classes/Tree/Pagetree/Commands.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/backend/Classes/Tree/Pagetree/Commands.php b/typo3/sysext/backend/Classes/Tree/Pagetree/Commands.php index cb1eb8ea3ca1..18515040d871 100644 --- a/typo3/sysext/backend/Classes/Tree/Pagetree/Commands.php +++ b/typo3/sysext/backend/Classes/Tree/Pagetree/Commands.php @@ -345,7 +345,7 @@ class Commands { $subNode->setEditableText($text); $subNode->setText(htmlspecialchars($visibleText), $field, $prefix, htmlspecialchars($suffix) . $stat); $subNode->setQTip($qtip); - if ($record['uid'] !== 0) { + if ((int)$record['uid'] !== 0) { $spriteIconCode = IconUtility::getSpriteIconForRecord('pages', $record); } else { $spriteIconCode = IconUtility::getSpriteIcon('apps-pagetree-root'); -- GitLab