mirror of https://github.com/Icinga/icinga2.git
parent
9f67b185b8
commit
3980cf04a0
|
@ -910,7 +910,7 @@ ExpressionResult UsingExpression::DoEvaluate(ScriptFrame& frame, DebugHint *dhin
|
||||||
if (!frame.Imports)
|
if (!frame.Imports)
|
||||||
frame.Imports = new Array();
|
frame.Imports = new Array();
|
||||||
else
|
else
|
||||||
frame.Imports = static_pointer_cast<Array>(frame.Imports->Clone());
|
frame.Imports = static_pointer_cast<Array>(frame.Imports->ShallowClone());
|
||||||
|
|
||||||
frame.Imports->Add(import);
|
frame.Imports->Add(import);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue