From 2f79499b0da47466f7c9d4e994be5364d66436e9 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 5 Feb 2018 15:51:16 +0000 Subject: [PATCH] fix to show settings when not empty && instead of || --- app/Setting.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -';