diff --git a/app/Setting.php b/app/Setting.php index be7458e7..f2eebd8c 100644 --- a/app/Setting.php +++ b/app/Setting.php @@ -58,8 +58,9 @@ class Setting extends Model } break; case 'select': - if(!empty($this->value) || $this->value !== 'none') { + if(!empty($this->value) && $this->value !== 'none') { $options = (array)json_decode($this->options); + d $value = $options[$this->value]; } else { $value = '- not set -';