fix config storage of booleans

This commit is contained in:
friendica 2012-04-04 17:51:59 -07:00
parent f63636ed14
commit 71671e5b9a

View File

@ -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;