[BUGFIX] Warning in list module
authorPhilipp Gampe <philipp.gampe@typo3.org>
Thu, 9 Aug 2012 15:08:12 +0000 (17:08 +0200)
committerXavier Perseguers <xavier@typo3.org>
Tue, 16 Oct 2012 09:43:45 +0000 (11:43 +0200)
The function addElement needs to have an array as third argument.

Change-Id: Ic88b3f246e27f2ab255a0d2017beb9a5d62e6f15
Fixes: #39678
Releases: 4.5, 4.6, 4.7, 6.0
Reviewed-on: http://review.typo3.org/13876
Reviewed-by: Stefan Neufeind
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
t3lib/class.t3lib_recordlist.php
typo3/sysext/recordlist/mod1/index.php

index bd2d1f2..f0436bb 100644 (file)
@@ -203,7 +203,7 @@ class t3lib_recordList {
                -->
                <table border="0" cellpadding="0" cellspacing="0">';
                $theIcon = '<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/ol/stopper.gif', 'width="18" height="16"') . ' alt="" />';
-               $this->HTMLcode .= $this->addElement(1, '', '', '', $this->leftMargin, $theIcon);
+               $this->HTMLcode .= $this->addElement(1, '', array(), '', $this->leftMargin, $theIcon);
                $this->HTMLcode .= '
                </table>';
        }
index 177784f..f4b171c 100644 (file)
@@ -205,6 +205,7 @@ class SC_db_list {
                }
 
                        // Initialize the dblist object:
+               /** @var $dblist localRecordList */
                $dblist = t3lib_div::makeInstance('localRecordList');
                $dblist->backPath = $GLOBALS['BACK_PATH'];
                $dblist->script = t3lib_BEfunc::getModuleUrl('web_list', array(), '');
@@ -499,4 +500,4 @@ $SOBE->clearCache();
 $SOBE->main();
 $SOBE->printContent();
 
-?>
\ No newline at end of file
+?>