Fix error thrown on 0 values for variables, closes #223

This commit is contained in:
Dane Everitt 2016-12-30 16:00:51 -05:00
parent 43786b1d2a
commit 7848f63e05
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -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.');
}