diff --git a/module/execution/zen.php b/module/execution/zen.php index e40d6a4f5c..d83b172eb9 100644 --- a/module/execution/zen.php +++ b/module/execution/zen.php @@ -878,9 +878,12 @@ class executionZen extends execution if(empty($_POST['products'])) dao::$errors['products[0]'] = $this->lang->project->errorNoProducts; if(dao::isError()) return false; - if(isset($this->config->setPercent) && $this->config->setPercent == 1) $this->execution->checkWorkload('create', (int)$_POST['percent'], $project); - if(dao::isError()) return false; - $this->config->execution->create->requiredFields .= ',percent'; + if(isset($this->config->setPercent) && $this->config->setPercent == 1) + { + $this->execution->checkWorkload('create', (int)$_POST['percent'], $project); + if(dao::isError()) return false; + $this->config->execution->create->requiredFields .= ',percent'; + } } return true;