[BUGFIX] Fix PHP 7.2 issues in EXT:lowlevel
[Packages/TYPO3.CMS.git] / typo3 / sysext / lowlevel / Classes / Controller / DatabaseIntegrityController.php
index d3d6449..5cc9650 100644 (file)
@@ -384,7 +384,7 @@ class DatabaseIntegrityController
             ],
             'deleted_pages' => [
                 'icon' => $this->iconFactory->getIconForRecord('pages', ['deleted' => 1], Icon::SIZE_SMALL)->render(),
-                'count' => count($admin->recStats['deleted']['pages'])
+                'count' => isset($admin->recStats['deleted']['pages']) ? count($admin->recStats['deleted']['pages']) : 0
             ]
         ];
 
@@ -426,7 +426,7 @@ class DatabaseIntegrityController
                 if ($t === 'pages' && $admin->lostPagesList !== '') {
                     $lostRecordCount = count(explode(',', $admin->lostPagesList));
                 } else {
-                    $lostRecordCount = count($admin->lRecords[$t]);
+                    $lostRecordCount = isset($admin->lRecords[$t]) ? count($admin->lRecords[$t]) : 0;
                 }
                 if ($countArr['all'][$t]) {
                     $theNumberOfRe = (int)$countArr['non_deleted'][$t] . '/' . $lostRecordCount;