From c56043e1f95f8dce2b6b408cabfeb3d1aeb48c52 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 6 Nov 2018 09:20:53 +0000 Subject: [PATCH] Add default value to null rather than not set --- app/Http/Controllers/SettingsController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 24d4c413..be905efd 100644 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -68,6 +68,8 @@ class SettingsController extends Controller if (!is_null($setting)) { $data = Setting::getInput(); + $setting_value = null; + if ($setting->type == 'image') {