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…
Reference in New Issue