Fixed bug #15321: Unused variable in tx_install
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / mod / class.tx_install.php
index 508d25a..f71d66c 100755 (executable)
@@ -8132,6 +8132,7 @@ $out="
                        if (count($warnings)) {
                                        // Get the subpart for warnings
                                $warningsSubpart = t3lib_parsehtml::getSubpart($content, '###WARNINGS###');
+                               $warningItems = array();
 
                                foreach ($warnings as $warning) {
                                                // Get the subpart for single warning items
@@ -8139,7 +8140,7 @@ $out="
                                                // Define the markers content
                                        $warningItemMarker['warning'] = $warning;
                                                // Fill the markers in the subpart
-                                       $warningItem[] = t3lib_parsehtml::substituteMarkerArray(
+                                       $warningItems[] = t3lib_parsehtml::substituteMarkerArray(
                                                $warningItemSubpart,
                                                $warningItemMarker,
                                                '###|###',