From 581609ea43243e46ca6b4e7b3e21a429c42fa2b1 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sun, 16 Oct 2022 18:06:17 +0300 Subject: [PATCH] Set the setting value correctly, if the setting-name argument was not found in the database --- application/helpers/setting_helper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/helpers/setting_helper.php b/application/helpers/setting_helper.php index 781ad1b5..c1b428d1 100644 --- a/application/helpers/setting_helper.php +++ b/application/helpers/setting_helper.php @@ -55,10 +55,11 @@ if ( ! function_exists('setting')) { $setting = [ 'name' => $name, - 'value' => $value, ]; } + $setting['value'] = $value; + $CI->settings_model->save($setting); }