aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorZot <mike@macgirvin.com>2020-01-30 20:06:15 +0100
committerMario <mario@mariovavti.com>2020-01-30 20:06:15 +0100
commit2c42daf6090ba8d0e3a50b8350ea5a3750891b68 (patch)
tree112a577d708088aecabd8af957c5c40b8e24e313 /include/channel.php
parent8e2446a2fc706a6750c925b4c2672314be6bb91f (diff)
downloadvolse-hubzilla-2c42daf6090ba8d0e3a50b8350ea5a3750891b68.tar.gz
volse-hubzilla-2c42daf6090ba8d0e3a50b8350ea5a3750891b68.tar.bz2
volse-hubzilla-2c42daf6090ba8d0e3a50b8350ea5a3750891b68.zip
z6 compat work
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/channel.php b/include/channel.php
index e7d119b1e..66ab56715 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -922,8 +922,17 @@ function identity_basic_export($channel_id, $sections = null, $zap_compat = fals
$r = q("select * from pconfig where uid = %d",
intval($channel_id)
);
- if($r)
+
+ if($r) {
+ if ($zap_compat) {
+ for($x = 0; $x < count($r); $x ++) {
+ if (preg_match('|^a:[0-9]+:{.*}$|s', $r[$x]['v'])) {
+ $r[$x]['v'] = serialise(unserialize($r[$x]['v']));
+ }
+ }
+ }
$ret['config'] = $r;
+ }
// All other term types will be included in items, if requested.