IniWriter: Variable $dangling is always set, but can be empty

This commit is contained in:
Sukhwinder Dhillon 2023-08-16 09:34:29 +02:00 committed by raviks789
parent 80b76c6f7d
commit bdd50bd97d
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class IniWriter
{
$doc = new Document();
$dangling = $oldDoc->getCommentsDangling();
if (isset($dangling)) {
if (! empty($dangling)) {
$doc->setCommentsDangling($dangling);
}
foreach ($newconfig->toArray() as $section => $directives) {