[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:03:23 +0000 (13:03 +0100)
The code in getReport(), directly before the call to getSystemStatus(),
is exactly the same as in getSystemStatus().

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

index a28e8eb..d62225b 100644 (file)
@@ -51,14 +51,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);