[BUGFIX] Styling of security warnings
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_befunc.php
index 42b7ec9..d487190 100644 (file)
@@ -4310,10 +4310,13 @@ final class t3lib_BEfunc {
                        }
 
                        if (count($warnings)) {
-                               $style = ' style="margin-bottom:10px;"';
-                               $securityWarnings = '<ul><li' . $style . '>'
-                                               . implode('</li><li' . $style . '>', $warnings)
-                                               . '</li></ul>';
+                               if (count($warnings) > 1) {
+                                       $securityWarnings = '<ul><li>' .
+                                                       implode('</li><li>', $warnings) .
+                                                       '</li></ul>';
+                               } else {
+                                       $securityWarnings = '<p>' . implode('', $warnings) . '</p>';
+                               }
 
                                $securityMessage = t3lib_div::makeInstance(
                                        't3lib_FlashMessage',