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); }