From: rabuzarus <> Date: Sun, 12 Jun 2016 16:55:20 +0000 (+0200) Subject: fix config & pconfig X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=64753f474c23257756118f326fe396b93fb5389b;p=friendica.git fix config & pconfig --- diff --git a/include/Core/Config.php b/include/Core/Config.php index b5d80c82e0..ff35418849 100644 --- a/include/Core/Config.php +++ b/include/Core/Config.php @@ -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), diff --git a/include/Core/PConfig.php b/include/Core/PConfig.php index 09c3c2a0b2..c47559d0eb 100644 --- a/include/Core/PConfig.php +++ b/include/Core/PConfig.php @@ -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),