aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-04-05 09:29:23 +0000
committerMario <mario@mariovavti.com>2020-04-05 09:29:23 +0000
commita31981966e4916b6a40af0743f4dcb578511d239 (patch)
tree5690b7f59c926f5ba677296f3f7f029883cbe353
parent84183d9f7ef669779841cfccd65aae8000012e6d (diff)
downloadvolse-hubzilla-a31981966e4916b6a40af0743f4dcb578511d239.tar.gz
volse-hubzilla-a31981966e4916b6a40af0743f4dcb578511d239.tar.bz2
volse-hubzilla-a31981966e4916b6a40af0743f4dcb578511d239.zip
fix warning if iconfig value is an array
-rw-r--r--Zotlabs/Lib/Activity.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index c50606d4f..3c16a5367 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -512,7 +512,7 @@ class Activity {
if ($item['iconfig']) {
foreach ($item['iconfig'] as $att) {
if ($att['sharing']) {
- $value = ((preg_match('|^a:[0-9]+:{.*}$|s', $att['v'])) ? unserialize($att['v']) : $att['v']);
+ $value = ((is_string($att['v']) && preg_match('|^a:[0-9]+:{.*}$|s', $att['v'])) ? unserialize($att['v']) : $att['v']);
$ret[] = [ 'type' => 'PropertyValue', 'name' => 'zot.' . $att['cat'] . '.' . $att['k'], 'value' => $value ];
}
}