mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
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();
|
||||
$dangling = $oldDoc->getCommentsDangling();
|
||||
if (isset($dangling)) {
|
||||
if (! empty($dangling)) {
|
||||
$doc->setCommentsDangling($dangling);
|
||||
}
|
||||
foreach ($newconfig->toArray() as $section => $directives) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user