[BUGFIX] SQL error in install tool if no root page available
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Classes / Updates / RootTemplateUpdate.php
index 63ff89b..247d0d0 100644 (file)
@@ -125,7 +125,7 @@ class RootTemplateUpdate extends AbstractUpdate implements InstallerProcessInter
                        'uid'
                );
 
-               if (is_array($rows)) {
+               if (is_array($rows) && !empty($rows)) {
                        $pages = $rows;
                }