IcingaCommandArgument: fix booleans

This commit is contained in:
Thomas Gelf 2016-03-28 23:48:19 +02:00
parent f2dc9c59e5
commit 9e91285136
1 changed files with 2 additions and 2 deletions

View File

@ -81,11 +81,11 @@ class IcingaCommandArgument extends IcingaObject
$data['set_if'] = $this->set_if; $data['set_if'] = $this->set_if;
} }
if ($this->required) { if ($this->required !== null) {
$data['required'] = $this->required === 'y'; $data['required'] = $this->required === 'y';
} }
if ($this->repeat_key) { if ($this->repeat_key !== null) {
$data['repeat_key'] = $this->repeat_key === 'y'; $data['repeat_key'] = $this->repeat_key === 'y';
} }