[TASK] PHP 5.4 adjustments
[Packages/TYPO3.CMS.git] / typo3 / sysext / reports / reports / status / class.tx_reports_reports_status_configurationstatus.php
index fb72101..c31a554 100644 (file)
@@ -55,11 +55,15 @@ class tx_reports_reports_status_ConfigurationStatus implements tx_reports_Status
 
                $statuses = array(
                        'emptyReferenceIndex'   => $this->getReferenceIndexStatus(),
-                       'deprecationLog'        => $this->getDeprecationLogStatus(),
-                       'safeModeEnabled'       => $this->getPhpSafeModeStatus(),
-                       'magicQuotesGpcEnabled' => $this->getPhpMagicQuotesGpcStatus(),
+                       'deprecationLog'        => $this->getDeprecationLogStatus()
                );
 
+                       // Do not show status about non-existant features
+               if (version_compare(phpversion(), '5.4', '<')) {
+                       $statuses['safeModeEnabled'] = $this->getPhpSafeModeStatus();
+                       $statuses['magicQuotesGpcEnabled'] = $this->getPhpMagicQuotesGpcStatus();
+               }
+
                if ($this->isMemcachedUsed()) {
                        $statuses['memcachedConnection'] = $this->getMemcachedConnectionStatus();
                }