[BUGFIX] Warning in list module 75/13875/2
authorPhilipp Gampe <philipp.gampe@typo3.org>
Thu, 9 Aug 2012 15:08:12 +0000 (17:08 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 27 Mar 2013 12:07:22 +0000 (13:07 +0100)
The function addElement needs to have an array as third argument.

Change-Id: Iefb86fc6399a6aaee58f66c712ac81743c1bd2ac
Fixes: #39678
Releases: 4.5, 4.6, 4.7, 6.0
Reviewed-on: https://review.typo3.org/13875
Reviewed-by: Stefan Neufeind
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
t3lib/class.t3lib_recordlist.php
typo3/sysext/recordlist/mod1/index.php

index 46b108d..0f6ec41 100644 (file)
@@ -225,7 +225,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 da111d5..6bad6a4 100644 (file)
@@ -225,6 +225,7 @@ class SC_db_list {
                }
 
                        // Initialize the dblist object:
+               /** @var $dblist localRecordList */
                $dblist = t3lib_div::makeInstance('localRecordList');
                $dblist->backPath = $BACK_PATH;
                $dblist->script = t3lib_BEfunc::getModuleUrl('web_list', array(), '');