[BUGFIX] Reports are called twice
authorPhilipp Gampe <forge.typo3.org@philippgampe.info>
Thu, 22 Dec 2011 00:20:34 +0000 (01:20 +0100)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Sat, 24 Dec 2011 12:30:58 +0000 (13:30 +0100)
The code in getReport(), directly before the call to getSystemStatus(),
is exactly the same as in getSystemStatus().

Change-Id: Iedb1891cb6f807474e2fb1b994b24cbbbadf7ba7
Fixes: #32768
Releases: 4.5,4.6,4.7
Reviewed-on: http://review.typo3.org/7508
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
typo3/sysext/reports/reports/class.tx_reports_reports_status.php

index 4d43205..dddfb54 100644 (file)
@@ -53,14 +53,6 @@ class tx_reports_reports_Status implements tx_reports_Report {
        public function getReport() {
                $content = '';
 
-               foreach ($this->statusProviders as $statusProviderId => $statusProvidersList) {
-                       $status[$statusProviderId] = array();
-                       foreach ($statusProvidersList as $statusProvider) {
-                               $statuses = $statusProvider->getStatus();
-                               $status[$statusProviderId] = array_merge($status[$statusProviderId], $statuses);
-                       }
-               }
-
                $status = $this->getSystemStatus();
                $highestSeverity = $this->getHighestSeverity($status);