Fixed bug #16140: [reports] PHP warning on missing array in reports system extension...
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 29 Oct 2010 14:29:04 +0000 (14:29 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 29 Oct 2010 14:29:04 +0000 (14:29 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9223 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/reports/ext_tables.php

index f720ee5..4ea3f06 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-10-29  Christian Kuhn  <lolli@schwarzbu.ch>
 
+       * Fixed bug #16140: [reports] PHP warning on missing array in reports system extension (Thanks to Rudi Meyer)
        * Added feature #16137: [em] Task to update extension list
        * Fixed bug #4272: Inconsistent return values of ini_get() produce false positives for safe_mode detection (Thanks to Peter Beernink)
 
index 31e0b0d..9172dfd 100644 (file)
@@ -13,6 +13,10 @@ if (TYPO3_MODE == 'BE') {
                'report'      => 'tx_reports_reports_Status'
        );
 
+       if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'])) {
+               $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'] = array();
+       }
+
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'] = array_merge(
                $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'],
                $statusReport