Fix error thrown on 0
values for variables, closes #223
This commit is contained in:
parent
43786b1d2a
commit
7848f63e05
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ class ServerRepository
|
|||
foreach ($variables as $variable) {
|
||||
|
||||
// Is the variable required?
|
||||
if (! $data['env_' . $variable->env_variable]) {
|
||||
if (! isset($data['env_' . $variable->env_variable])) {
|
||||
if ($variable->required === 1) {
|
||||
throw new DisplayException('A required service option variable field (env_' . $variable->env_variable . ') was missing from the request.');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue