Fix a bug that causes a warning to be displayed when a section

declaration at line 0 is present
This commit is contained in:
Matthias Jentsch 2013-08-14 14:13:07 +02:00 committed by Jannis Moßhammer
parent eecbc233b9
commit 7c1b11baa4
1 changed files with 1 additions and 1 deletions

View File

@ -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--;