diff --git a/vendor/readme-parser.php b/vendor/readme-parser.php index 00a53bb..d69c051 100644 --- a/vendor/readme-parser.php +++ b/vendor/readme-parser.php @@ -121,7 +121,7 @@ class PucReadmeParser { $_sections = preg_split('/^[\s]*==[\s]*(.+?)[\s]*==/m', $file_contents, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); $sections = array(); - for ( $i=1; $i <= count($_sections); $i +=2 ) { + for ( $i=1; $i < count($_sections); $i +=2 ) { $_sections[$i] = preg_replace('/(^[\s]*)=[\s]+(.+?)[\s]+=/m', '$1