IniWriter: Variable $dangling is always set, but can be empty
This commit is contained in:
parent
80b76c6f7d
commit
bdd50bd97d
|
@ -118,7 +118,7 @@ class IniWriter
|
||||||
{
|
{
|
||||||
$doc = new Document();
|
$doc = new Document();
|
||||||
$dangling = $oldDoc->getCommentsDangling();
|
$dangling = $oldDoc->getCommentsDangling();
|
||||||
if (isset($dangling)) {
|
if (! empty($dangling)) {
|
||||||
$doc->setCommentsDangling($dangling);
|
$doc->setCommentsDangling($dangling);
|
||||||
}
|
}
|
||||||
foreach ($newconfig->toArray() as $section => $directives) {
|
foreach ($newconfig->toArray() as $section => $directives) {
|
||||||
|
|
Loading…
Reference in New Issue