From: friendica Date: Thu, 5 Apr 2012 00:51:59 +0000 (-0700) Subject: fix config storage of booleans X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=71671e5b9a497bb0d81216e638f19a48f683ee52;p=friendica.git fix config storage of booleans --- diff --git a/include/config.php b/include/config.php index 2cddda0b8d..4cff38090c 100755 --- a/include/config.php +++ b/include/config.php @@ -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;