mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-06-03 21:53:08 -04:00
IniWriter: Variable $dangling is always set, but can be empty
This commit is contained in:
parent
80b76c6f7d
commit
bdd50bd97d
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue