diff options
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r-- | Zotlabs/Lib/ActivityStreams.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/ActivityStreams.php b/Zotlabs/Lib/ActivityStreams.php index 1a6fe9c1b..cfed53b3c 100644 --- a/Zotlabs/Lib/ActivityStreams.php +++ b/Zotlabs/Lib/ActivityStreams.php @@ -182,11 +182,11 @@ class ActivityStreams { $values = $this->objprop($field); if ($values) { $values = force_array($values); - $tmp[$field] = (($tmp[$field]) ? array_merge($tmp[$field], $values) : $values); + $tmp[$field] = ((isset($tmp[$field])) ? array_merge($tmp[$field], $values) : $values); $result = array_values(array_unique(array_merge($result, $values))); } // remove duplicates - if (is_array($tmp[$field])) { + if (isset($tmp[$field])) { $tmp[$field] = array_values(array_unique($tmp[$field])); } } |