Fixed bug #15097: Intro looks weird with module and no submodules (Thanks to Georg...
authorSteffen Kamper <info@sk-typo3.de>
Tue, 13 Jul 2010 20:54:24 +0000 (20:54 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Tue, 13 Jul 2010 20:54:24 +0000 (20:54 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8184 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.alt_menu_functions.inc

index c7f39fc..c49732d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
 
 2010-07-13  Steffen Kamper  <info@sk-typo3.de>
 
+       * Fixed bug #15097: Intro looks weird with module and no submodules (Thanks to Georg Ringer)
        * Fixed bug #15073: inlineJS creates superfluous markup (Thanks to Georg Ringer)
        * Fixed bug #15103: TS Errors are hardly readable (white on yellow) (Thanks to Georg Ringer)
        * Fixed bug #15098: TS Errors should be shown with flash messages (Thanks to Georg Ringer)
index ee751cf..128c64b 100644 (file)
@@ -389,20 +389,21 @@ class alt_menu_functions {
                                }
                        }
 
-                               // Add spacers after each main section:
-                       $subCode.='
-                                       <tr class="c-endrow">
-                                               <td colspan="3"></td>
-                                       </tr>';
-                       $descrCode.='
-                                       <tr class="c-endrow">
-                                               <td colspan="3"></td>
-                                       </tr>';
+                       if (!empty($subCode)) {
+                                       // Add spacers after each main section:
+                               $subCode .= '
+                                               <tr class="c-endrow">
+                                                       <td colspan="3"></td>
+                                               </tr>';
+                               $descrCode .= '
+                                               <tr class="c-endrow">
+                                                       <td colspan="3"></td>
+                                               </tr>';
 
-                               // Add sub-code:
-                       $menuCode.=$subCode;
+                                       // Add sub-code:
+                               $menuCode .= $subCode;
+                       }
                }
-
                        // $descr==0:   Ordinary vertical menu
                if ($menuCode)  {
                        if($collapsable == 1 || $config['expandAll'] == 1) {