Merge pull request #2859 from TimFoerster/patch-2

Allows 0 and ‘0’ values as default values for theme settings
This commit is contained in:
Samuel Georges 2017-05-15 20:31:59 +10:00 committed by GitHub
commit 5ca3c3fa35
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class ThemeData extends Model
$result = [];
foreach ($this->getFormFields() as $attribute => $field) {
if (!$value = array_get($field, 'default')) {
if (($value = array_get($field, 'default')) === null) {
continue;
}