[BUGFIX] Add missing int-cast for checking uid zero 27/39727/2
authorMarkus Klein <markus.klein@typo3.org>
Tue, 26 May 2015 07:55:55 +0000 (09:55 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Tue, 26 May 2015 08:13:19 +0000 (10:13 +0200)
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

index cb1eb8e..1851504 100644 (file)
@@ -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');