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; break;
case 'select': case 'select':
if(!empty($this->value) || $this->value !== 'none') { if(!empty($this->value) && $this->value !== 'none') {
$options = (array)json_decode($this->options); $options = (array)json_decode($this->options);
d
$value = $options[$this->value]; $value = $options[$this->value];
} else { } else {
$value = '- not set -'; $value = '- not set -';

Loading…
Cancel
Save