Browse Source

Bugfix: generating Fn::If without false caused error

master
Adam Pippin 3 years ago
parent
commit
a3fe71526d
  1. 5
      app/Cfnpp/Functions.php

5
app/Cfnpp/Functions.php

@ -197,7 +197,10 @@ class Functions
$n_if = new Node($n_orig, 'Fn::If');
$n_if->addChild(new NodeValue($n_if, null, $condition_name));
$n_if->addChild($if_true);
$n_if->addChild($if_false);
if (isset($if_false))
{
$n_if->addChild($if_false);
}
return $n_if;
}

Loading…
Cancel
Save