Set the setting value correctly, if the setting-name argument was not found in the database
This commit is contained in:
parent
1fe33fb672
commit
581609ea43
1 changed files with 2 additions and 1 deletions
|
@ -55,10 +55,11 @@ if ( ! function_exists('setting'))
|
||||||
{
|
{
|
||||||
$setting = [
|
$setting = [
|
||||||
'name' => $name,
|
'name' => $name,
|
||||||
'value' => $value,
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$setting['value'] = $value;
|
||||||
|
|
||||||
$CI->settings_model->save($setting);
|
$CI->settings_model->save($setting);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue