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
1 changed files with 2 additions and 1 deletions

View File

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