[BUGFIX] Add missing int-cast for checking uid zero
[Packages/TYPO3.CMS.git] / 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');