[BUGFIX] Make recycler PHP 7.2 compatible 46/55046/2
authorSusanne Moog <susanne.moog@typo3.com>
Tue, 12 Dec 2017 10:59:46 +0000 (11:59 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Tue, 12 Dec 2017 13:09:49 +0000 (14:09 +0100)
Change-Id: I36167b0a8b61532adbafea93c88c93097ea52d73
Resolves: #83297
Releases: master, 8.7, 7.6
Reviewed-on: https://review.typo3.org/55042
Reviewed-on: https://review.typo3.org/55046
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/recycler/Classes/Domain/Model/DeletedRecords.php

index df7a648..68b889b 100644 (file)
@@ -126,7 +126,7 @@ class DeletedRecords
         $deletedRecords = $this->loadData($id, $table, $depth, '', $filter)->getDeletedRows();
         $countTotal = 0;
         foreach ($this->table as $tableName) {
-            $countTotal += count($deletedRecords[$tableName]);
+            $countTotal += count($deletedRecords[$tableName] ?? []);
         }
         return $countTotal;
     }