IcingaCommandArgument: be defensive, format could
...be missing fixes #1151
This commit is contained in:
parent
7cd307ea53
commit
9cfc6bb46d
|
@ -96,9 +96,14 @@ class IcingaCommandArgument extends IcingaObject
|
|||
protected function transformPlainArgumentValue($plain)
|
||||
{
|
||||
if (property_exists($plain, 'argument_value')) {
|
||||
if (property_exists($plain, 'argument_format')) {
|
||||
$format = $plain->argument_format;
|
||||
} else {
|
||||
$format = 'string';
|
||||
}
|
||||
$plain->value = $this->makePlainArgumentValue(
|
||||
$plain->argument_value,
|
||||
$plain->argument_format
|
||||
$format
|
||||
);
|
||||
unset($plain->argument_value);
|
||||
unset($plain->argument_format);
|
||||
|
|
Loading…
Reference in New Issue