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