[FOLLOWUP] This is FormEngine
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / FormEngine.php
index 8b4d14b..082634c 100644 (file)
@@ -4009,7 +4009,7 @@ class FormEngine {
                        for ($counter = 0; $counter < $numberOfItems; $counter++) {
                                $content = $fields[$counter];
                                if ($content['NAME'] === '--linebreak--') {
                        for ($counter = 0; $counter < $numberOfItems; $counter++) {
                                $content = $fields[$counter];
                                if ($content['NAME'] === '--linebreak--') {
-                                       if ($counter + 1 !== $numberOfItems) {
+                                       if ($counter !== $numberOfItems) {
                                                $out .= '<div class="clearfix"></div>';
                                        }
                                } else {
                                                $out .= '<div class="clearfix"></div>';
                                        }
                                } else {