mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-08 22:44:24 +02:00
Fix a bug that causes a warning to be displayed when a section
declaration at line 0 is present
This commit is contained in:
parent
eecbc233b9
commit
7c1b11baa4
@ -227,7 +227,7 @@ class IniEditor
|
||||
private function cleanUpWhitespaces()
|
||||
{
|
||||
$i = count($this->text) - 1;
|
||||
for (; $i >= 0; $i--) {
|
||||
for (; $i > 0; $i--) {
|
||||
$line = $this->text[$i];
|
||||
if ($this->isSectionDeclaration($line)) {
|
||||
$i--;
|
||||
|
Loading…
x
Reference in New Issue
Block a user