diff options
author | Mario <mario@mariovavti.com> | 2020-04-05 09:29:23 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-04-05 09:29:23 +0000 |
commit | a31981966e4916b6a40af0743f4dcb578511d239 (patch) | |
tree | 5690b7f59c926f5ba677296f3f7f029883cbe353 /Zotlabs/Lib/Activity.php | |
parent | 84183d9f7ef669779841cfccd65aae8000012e6d (diff) | |
download | volse-hubzilla-a31981966e4916b6a40af0743f4dcb578511d239.tar.gz volse-hubzilla-a31981966e4916b6a40af0743f4dcb578511d239.tar.bz2 volse-hubzilla-a31981966e4916b6a40af0743f4dcb578511d239.zip |
fix warning if iconfig value is an array
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 2 |
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 ]; } } |