Skip to content

Commit

Permalink
Merge pull request #12 from slashome/master
Browse files Browse the repository at this point in the history
Avoid Unitialized string offset notice message
leonelquinteros authored Apr 30, 2018
2 parents 1defbe9 + 7bd9129 commit 612a268
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/Toml.php
Original file line number Diff line number Diff line change
@@ -399,15 +399,17 @@ private static function normalize($toml)
}

// Raw Lines
$lineBuffer .= $toml[$i];
if($toml[$i] == "\n")
{
$lineBuffer = '';
}
if(isset($toml[$i])) {
$lineBuffer .= $toml[$i];
if($toml[$i] == "\n")
{
$lineBuffer = '';
}

if($keep)
{
$normalized .= $toml[$i];
if($keep)
{
$normalized .= $toml[$i];
}
}
}

0 comments on commit 612a268

Please sign in to comment.