fix to show settings when not empty && instead of ||

This commit is contained in:
Chris
2018-02-05 15:51:16 +00:00
parent 20e029a3ff
commit 2f79499b0d

View File

@@ -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 -';