]> git.mxchange.org Git - friendica.git/commitdiff
fix config storage of booleans
authorfriendica <info@friendica.com>
Thu, 5 Apr 2012 00:51:59 +0000 (17:51 -0700)
committerfriendica <info@friendica.com>
Thu, 5 Apr 2012 00:51:59 +0000 (17:51 -0700)
include/config.php

index 2cddda0b8d9a98f30f022793c6423378a57382ff..4cff38090c2e5bdd585de562d81fa1c5bb7a67f7 100755 (executable)
@@ -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;