mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
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…
x
Reference in New Issue
Block a user