diff --git a/code/app/Services/BaseService.php b/code/app/Services/BaseService.php index 380ce4ad..5059c57b 100644 --- a/code/app/Services/BaseService.php +++ b/code/app/Services/BaseService.php @@ -70,7 +70,7 @@ protected function setIfSet($target, array $source, $key, $default = null) protected function boolIfSet($target, array $source, $key, $default = null) { - $target->$key = (isset($source[$key]) && $source[$key] !== false); + $target->$key = (isset($source[$key]) && $source[$key] !== false && $source[$key] !== 0); } protected function transformAndSetIfSet($target, array $source, $key, $transformerFunction)