]> git.mxchange.org Git - friendica.git/commitdiff
fix config & pconfig
authorrabuzarus <>
Sun, 12 Jun 2016 16:55:20 +0000 (18:55 +0200)
committerrabuzarus <>
Sun, 12 Jun 2016 16:55:20 +0000 (18:55 +0200)
include/Core/Config.php
include/Core/PConfig.php

index b5d80c82e0331449a886ab097e0a391801d3cd0b..ff35418849b428d4705ea89e25cf8780b37ed3d3 100644 (file)
@@ -172,7 +172,7 @@ class Config {
                // manage array value
                $dbvalue = (is_array($value)?serialize($value):$value);
                $dbvalue = (is_bool($dbvalue) ? intval($dbvalue) : $dbvalue);
-               if(self::get($family,$key,true) === false) {
+               if(self::get($family,$key,null,true) === false) {
                        $a->config[$family][$key] = $value;
                        $ret = q("INSERT INTO `config` ( `cat`, `k`, `v` ) VALUES ( '%s', '%s', '%s' ) ",
                                dbesc($family),
index 09c3c2a0b22311f070b05c6e3723c4954602b00f..c47559d0ebd257e637fcc02a6bdc236e7bcf1b05 100644 (file)
@@ -161,7 +161,7 @@ class PConfig {
                // manage array value
                $dbvalue = (is_array($value)?serialize($value):$value);
 
-               if(self::get($uid,$family,$key,true) === false) {
+               if(self::get($uid,$family,$key,null, true) === false) {
                        $a->config[$uid][$family][$key] = $value;
                        $ret = q("INSERT INTO `pconfig` ( `uid`, `cat`, `k`, `v` ) VALUES ( %d, '%s', '%s', '%s' ) ",
                                intval($uid),