fix config storage of booleans
This commit is contained in:
parent
f63636ed14
commit
71671e5b9a
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ function set_config($family,$key,$value) {
|
|||
|
||||
// manage array value
|
||||
$dbvalue = (is_array($value)?serialize($value):$value);
|
||||
$dbvalue = (is_bool($value) ? intval($value) : $value);
|
||||
|
||||
if(get_config($family,$key,true) === false) {
|
||||
$a->config[$family][$key] = $value;
|
||||
|
|
Loading…
Reference in a new issue