From: Tobias Diekershoff Date: Tue, 22 May 2012 09:56:49 +0000 (+0200) Subject: fix setting array values to config items X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5dad99888d4d67fd10e777b074a77f01f65018aa;p=friendica.git fix setting array values to config items --- diff --git a/include/config.php b/include/config.php index 4cff38090c..12fc9cafc9 100644 --- a/include/config.php +++ b/include/config.php @@ -77,11 +77,9 @@ function get_config($family, $key, $instore = false) { if(! function_exists('set_config')) { function set_config($family,$key,$value) { global $a; - // manage array value $dbvalue = (is_array($value)?serialize($value):$value); - $dbvalue = (is_bool($value) ? intval($value) : $value); - + $dbvalue = (is_bool($dbvalue) ? intval($dbvalue) : $dbvalue); if(get_config($family,$key,true) === false) { $a->config[$family][$key] = $value; $ret = q("INSERT INTO `config` ( `cat`, `k`, `v` ) VALUES ( '%s', '%s', '%s' ) ",