mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 10:53:40 +03:00
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 = [
|
||||
'name' => $name,
|
||||
'value' => $value,
|
||||
];
|
||||
}
|
||||
|
||||
$setting['value'] = $value;
|
||||
|
||||
$CI->settings_model->save($setting);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue