Index: trunk/extensions/ParserFunctions/ParserFunctions_body.php |
— | — | @@ -693,6 +693,7 @@ |
694 | 694 | if ( intval( $inLength ) == 0 ) { |
695 | 695 | $result = mb_substr( $inStr, $inStart ); |
696 | 696 | } else { |
| 697 | + $inStart = intval( $inStart ); // prevents warnings when inStart is an empty string |
697 | 698 | $result = mb_substr( $inStr, $inStart, $inLength ); |
698 | 699 | } |
699 | 700 | |