From 71671e5b9a497bb0d81216e638f19a48f683ee52 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 4 Apr 2012 17:51:59 -0700 Subject: [PATCH] fix config storage of booleans --- include/config.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/config.php b/include/config.php index 2cddda0b8..4cff38090 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;