From 5dad99888d4d67fd10e777b074a77f01f65018aa Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Tue, 22 May 2012 11:56:49 +0200 Subject: [PATCH] fix setting array values to config items --- include/config.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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' ) ", -- 2.39.5