aboutsummaryrefslogtreecommitdiffstats
path: root/include/config.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-09-02 01:59:11 -0700
committerfriendica <info@friendica.com>2012-09-02 01:59:11 -0700
commit38344798f23c12db2409fb91d5e2aaf6c492c6f5 (patch)
tree122174b9aa3f975c76998a3afc3101c961799309 /include/config.php
parent4736fa5927b35ebd0b2fc337e9f4a3d1e1e0af0d (diff)
downloadvolse-hubzilla-38344798f23c12db2409fb91d5e2aaf6c492c6f5.tar.gz
volse-hubzilla-38344798f23c12db2409fb91d5e2aaf6c492c6f5.tar.bz2
volse-hubzilla-38344798f23c12db2409fb91d5e2aaf6c492c6f5.zip
rev update
Diffstat (limited to 'include/config.php')
-rw-r--r--include/config.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/config.php b/include/config.php
index 1f2a70e5a..44606e329 100644
--- a/include/config.php
+++ b/include/config.php
@@ -68,7 +68,7 @@ function get_config($family, $key, $instore = false) {
);
if(count($ret)) {
// manage array value
- $val = (preg_match("|^a:[0-9]+:{.*}$|", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
+ $val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
$a->config[$family][$key] = $val;
return $val;
}
@@ -162,7 +162,7 @@ function get_pconfig($uid,$family, $key, $instore = false) {
);
if(count($ret)) {
- $val = (preg_match("|^a:[0-9]+:{.*}$|", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
+ $val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
$a->config[$uid][$family][$key] = $val;
return $val;
}