aboutsummaryrefslogtreecommitdiffstats
path: root/include/config.php
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2012-05-22 11:56:49 +0200
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2012-05-22 11:56:49 +0200
commit5dad99888d4d67fd10e777b074a77f01f65018aa (patch)
tree4f25e0bef7367c8c22a147b6244ab6cb8218d188 /include/config.php
parent2320a3e549f60ecd1c9f2825a0bb706467292e93 (diff)
downloadvolse-hubzilla-5dad99888d4d67fd10e777b074a77f01f65018aa.tar.gz
volse-hubzilla-5dad99888d4d67fd10e777b074a77f01f65018aa.tar.bz2
volse-hubzilla-5dad99888d4d67fd10e777b074a77f01f65018aa.zip
fix setting array values to config items
Diffstat (limited to 'include/config.php')
-rw-r--r--include/config.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/config.php b/include/config.php
index 4cff38090..12fc9cafc 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' ) ",