Index: trunk/phase3/includes/specials/SpecialAllpages.php |
— | — | @@ -188,7 +188,11 @@ |
189 | 189 | // If there are only two or less sections, don't even display them. |
190 | 190 | // Instead, display the first section directly. |
191 | 191 | if( count( $lines ) <= 2 ) { |
192 | | - $this->showChunk( $namespace, $lines[0], $lines[count($lines)-1], $including ); |
| 192 | + if( !empty($lines) ) { |
| 193 | + $this->showChunk( $namespace, $lines[0], $lines[count($lines)-1], $including ); |
| 194 | + } else { |
| 195 | + $wgOut->addHtml( $this->namespaceForm( $namespace, $from, $to ) ); |
| 196 | + } |
193 | 197 | return; |
194 | 198 | } |
195 | 199 | |