aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-04 17:51:59 -0700
committerfriendica <info@friendica.com>2012-04-04 17:51:59 -0700
commit71671e5b9a497bb0d81216e638f19a48f683ee52 (patch)
treecfb518ebb258e0dbe5ab05c6f621b0d53bb3181d
parentf63636ed14ccd0e88f6e01153029ff6b79c91027 (diff)
downloadvolse-hubzilla-71671e5b9a497bb0d81216e638f19a48f683ee52.tar.gz
volse-hubzilla-71671e5b9a497bb0d81216e638f19a48f683ee52.tar.bz2
volse-hubzilla-71671e5b9a497bb0d81216e638f19a48f683ee52.zip
fix config storage of booleans
-rwxr-xr-xinclude/config.php1
1 files changed, 1 insertions, 0 deletions
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;