Browse Source

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

pull/11/head
Chris 7 years ago
parent
commit
2f79499b0d
  1. 3
      app/Setting.php

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

Loading…
Cancel
Save