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

ChangeLog
typo3/sysext/reports/ext_tables.php

index a5a797a..51de5f1 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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)
+
 2010-10-29  Ernesto Baschny  <ernst@cron-it.de>
 
        * Fixed bug #16155: t3lib_db::INSERTquery misses a space when generering the INSERT INTO statement
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