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:
parent
fa61b601d4
commit
05139ae684
|
@ -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--;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue