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