From 7848f63e05fed06010fa78d7ab2701156de38546 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 30 Dec 2016 16:00:51 -0500 Subject: [PATCH] Fix error thrown on `0` values for variables, closes #223 --- app/Repositories/ServerRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/ServerRepository.php b/app/Repositories/ServerRepository.php index a794e465b..0310cee93 100644 --- a/app/Repositories/ServerRepository.php +++ b/app/Repositories/ServerRepository.php @@ -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.'); }