[TASK] Fix CGL violations against InlineControlStructure
[Packages/TYPO3.CMS.git] / typo3 / backend.php
index 00a78e2..bc6504a 100644 (file)
@@ -336,10 +336,11 @@ class TYPO3backend {
                        if ($menu) {
                                $additionalAttributes = $toolbarItem->getAdditionalAttributes();
                                if (sizeof($this->toolbarItems) > 1 && $i == sizeof($this->toolbarItems) -1) {
-                                       if (strpos($additionalAttributes, 'class="'))
+                                       if (strpos($additionalAttributes, 'class="')) {
                                                str_replace('class="', 'class="separator ', $additionalAttributes);
-                                       else
+                                       } else {
                                                $additionalAttributes .= 'class="separator"';
+                                       }
                                }
                                $toolbar .= '<li' . $additionalAttributes . '>' .$menu. '</li>';
                        }