[BUGFIX] Cast database result uid to int
[Packages/TYPO3.CMS.git] / typo3 / sysext / lowlevel / Classes / Command / OrphanRecordsCommand.php
index bccab3a..5671fc5 100644 (file)
@@ -211,7 +211,7 @@ Manual repair suggestions:
                 ->execute();
 
             while ($row = $result->fetch()) {
-                $allRecords = $this->findAllConnectedRecordsInPage($row['uid'], $depth, $allRecords);
+                $allRecords = $this->findAllConnectedRecordsInPage((int)$row['uid'], $depth, $allRecords);
             }
         }
 
@@ -221,7 +221,7 @@ Manual repair suggestions:
             if (is_array($versions)) {
                 foreach ($versions as $verRec) {
                     if (!$verRec['_CURRENT_VERSION']) {
-                        $allRecords = $this->findAllConnectedRecordsInPage($verRec['uid'], $depth, $allRecords);
+                        $allRecords = $this->findAllConnectedRecordsInPage((int)$verRec['uid'], $depth, $allRecords);
                     }
                 }
             }