Index: trunk/phase3/includes/SpecialVersion.php |
— | — | @@ -238,7 +238,9 @@ |
239 | 239 | if ( $cnt == 1 ) |
240 | 240 | // Enforce always returning a string |
241 | 241 | return (string)$this->arrayToString( $list[0] ); |
242 | | - else { |
| 242 | + elseif ( $cnt == 0 ) { |
| 243 | + return ''; |
| 244 | + else { |
243 | 245 | $t = array_slice( $list, 0, $cnt - 1 ); |
244 | 246 | $one = array_map( array( &$this, 'arrayToString' ), $t ); |
245 | 247 | $two = $this->arrayToString( $list[$cnt - 1] ); |