We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
0
1 parent 43786b1 commit 7848f63Copy full SHA for 7848f63
1 file changed
app/Repositories/ServerRepository.php
@@ -166,7 +166,7 @@ public function create(array $data)
166
foreach ($variables as $variable) {
167
168
// Is the variable required?
169
- if (! $data['env_' . $variable->env_variable]) {
+ if (! isset($data['env_' . $variable->env_variable])) {
170
if ($variable->required === 1) {
171
throw new DisplayException('A required service option variable field (env_' . $variable->env_variable . ') was missing from the request.');
172
}
0 commit comments