Skip to content

Commit

Permalink
piccolo fix in salvataggio valori booleani
Browse files Browse the repository at this point in the history
  • Loading branch information
madbob committed Dec 18, 2023
1 parent 8e566db commit 11136a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/app/Services/BaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 11136a9

Please sign in to comment.