Fix a bug in the section map creation of the IniEditor

Don't omit the first line when putting 'glued' comments into
the following section
This commit is contained in:
Matthias Jentsch 2014-07-04 11:38:30 +02:00
parent fa61b601d4
commit 05139ae684
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ class IniEditor
*/
$j = $i - 1;
$comments = array();
while ($j > 0 && $this->isComment($this->text[$j])) {
while ($j >= 0 && $this->isComment($this->text[$j])) {
array_push($comments, array_pop($sections[$section]));
$j--;
}