Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_List.php |
— | — | @@ -111,8 +111,8 @@ |
112 | 112 | $rows_in_cur_column = 0; |
113 | 113 | } |
114 | 114 | |
115 | | - $result .= "\t\t\t\t$header\n"; |
116 | | - |
| 115 | + if ( strlen($header) > 0 ) |
| 116 | + $result .= "\t\t\t\t$header\n"; |
117 | 117 | |
118 | 118 | if ( $this->mIntroTemplate != '' ) { |
119 | 119 | $result .= "{{" . $this->mIntroTemplate . "}}"; |
— | — | @@ -137,7 +137,8 @@ |
138 | 138 | } |
139 | 139 | |
140 | 140 | // Print footer |
141 | | - $result .= "\t\t\t\t$footer\n"; |
| 141 | + if ( strlen($footer) > 0 ) |
| 142 | + $result .= "\t\t\t\t$footer\n"; |
142 | 143 | |
143 | 144 | if ( $this->mColumns > 1 ) { |
144 | 145 | $result .= "\t\t\t\t</div>\n"; |