diff --git a/app/models/Setting.php b/app/models/Setting.php index 1e4f2a02..beaaa843 100644 --- a/app/models/Setting.php +++ b/app/models/Setting.php @@ -18,10 +18,10 @@ // If we don't have a setting, check the env (fallback for original version) if ($checkEnv) { if (!($setting = getenv(strtoupper($settingName)))) { - self::unknownSettingException($settingName); + return $setting; } } else { - self::unknownSettingException($settingName); + return $setting; } }