mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +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;
|
$j = $i - 1;
|
||||||
$comments = array();
|
$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]));
|
array_push($comments, array_pop($sections[$section]));
|
||||||
$j--;
|
$j--;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user