aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-02-28 09:29:39 +0000
committerMario <mario@mariovavti.com>2023-02-28 09:29:39 +0000
commitca0bd3ed3251e2558dc4a53abed417dd9da6244d (patch)
treef35d955a3132321dff11b4654bb5556b2e458975 /Zotlabs/Lib
parent7dacc7c2688199f8d73a2a33fbdfdd840fc62d77 (diff)
downloadvolse-hubzilla-ca0bd3ed3251e2558dc4a53abed417dd9da6244d.tar.gz
volse-hubzilla-ca0bd3ed3251e2558dc4a53abed417dd9da6244d.tar.bz2
volse-hubzilla-ca0bd3ed3251e2558dc4a53abed417dd9da6244d.zip
fix some php warnings
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/ActivityStreams.php4
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]));
}
}