[BUGFIX] Fix PHP 7.2 issues in EXT:lowlevel 36/55236/2
authorGeorg Ringer <georg.ringer@gmail.com>
Sun, 24 Dec 2017 08:58:08 +0000 (09:58 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Mon, 1 Jan 2018 20:20:56 +0000 (21:20 +0100)
Resolves: #83409
Releases: master, 8.7, 7.6
Change-Id: I94a3a3ad31de6e4969d5456f12b728c98adf0815
Reviewed-on: https://review.typo3.org/55236
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/lowlevel/Classes/View/DatabaseIntegrityView.php

index 608ee06..e3598b6 100644 (file)
@@ -374,7 +374,7 @@ class DatabaseIntegrityView extends BaseScriptClass
             ],
             '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
             ]
         ];
 
@@ -416,7 +416,7 @@ class DatabaseIntegrityView extends BaseScriptClass
                 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;