X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FPreprocessor_Hash.php;h=2fc5e118cab6710e8c7f0b1d699b2110ef288c3a;hb=1d0b2e03eb6d4a9c0194a64e625c90e3311b5890;hp=3f5ca8efc5e545604b73d5561d3cebec7e503c5e;hpb=5c5fb511c70346a660cb6aa388cc677e11d3bdab;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/Preprocessor_Hash.php b/includes/parser/Preprocessor_Hash.php index 3f5ca8efc5..2fc5e118ca 100644 --- a/includes/parser/Preprocessor_Hash.php +++ b/includes/parser/Preprocessor_Hash.php @@ -342,10 +342,10 @@ class Preprocessor_Hash implements Preprocessor { foreach ( $comments as $j => $com ) { $startPos = $com[0]; $endPos = $com[1] + 1; - if ( $j == ( count( $comments ) - 1) ) { + if ( $j == ( count( $comments ) - 1 ) ) { break; } - $inner = substr( $text, $startPos, $endPos - $startPos); + $inner = substr( $text, $startPos, $endPos - $startPos ); $accum->addNodeWithText( 'comment', $inner ); }