Set the setting value correctly, if the setting-name argument was not found in the database

This commit is contained in:
Alex Tselegidis 2022-10-16 18:06:17 +03:00
parent 1fe33fb672
commit 581609ea43

View file

@ -55,10 +55,11 @@ if ( ! function_exists('setting'))
{
$setting = [
'name' => $name,
'value' => $value,
];
}
$setting['value'] = $value;
$CI->settings_model->save($setting);
}