Index: trunk/extensions/WikiObjectModel/includes/parsers/WOMListItemParser.php |
— | — | @@ -33,7 +33,8 @@ |
34 | 34 | if ( !$obj instanceof WOMListItemModel ) |
35 | 35 | return false; |
36 | 36 | |
37 | | - if ( ( strlen( $text ) >= $offset + 1 ) && $text { $offset } == "\n" ) { |
| 37 | + $len = strlen( $text ); |
| 38 | + if ( ( $offset >= $len ) || ( ( $len >= $offset + 1 ) && $text { $offset } == "\n" ) ) { |
38 | 39 | return 0; |
39 | 40 | } |
40 | 41 | |