aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-09-08 09:22:36 +0200
committerMario Vavti <mario@mariovavti.com>2017-09-08 09:22:36 +0200
commit108bb7649bb61bee65d9923c9080c3af8e715bc4 (patch)
tree4b96649d85d098de8e723df85b409cb0a43832d1 /include/items.php
parent7b3aa92b5ad09c0820db2b20bc462c975f0d3aba (diff)
parent1104e2652f15aaa405208b6dec9e439fb8c39537 (diff)
downloadvolse-hubzilla-108bb7649bb61bee65d9923c9080c3af8e715bc4.tar.gz
volse-hubzilla-108bb7649bb61bee65d9923c9080c3af8e715bc4.tar.bz2
volse-hubzilla-108bb7649bb61bee65d9923c9080c3af8e715bc4.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index d10d43687..f286015fe 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2004,17 +2004,17 @@ function item_store_update($arr,$allow_exec = false, $deliver = true) {
$arr = $translate['item'];
}
- if((x($arr,'obj')) && is_array($arr['obj'])) {
+ if((array_key_exists('obj',$arr)) && is_array($arr['obj'])) {
activity_sanitise($arr['obj']);
$arr['obj'] = json_encode($arr['obj']);
}
- if((x($arr,'target')) && is_array($arr['target'])) {
+ if((array_key_exists('target',$arr)) && is_array($arr['target'])) {
activity_sanitise($arr['target']);
$arr['target'] = json_encode($arr['target']);
}
- if((x($arr,'attach')) && is_array($arr['attach'])) {
+ if((array_key_exists('attach',$arr)) && is_array($arr['attach'])) {
activity_sanitise($arr['attach']);
$arr['attach'] = json_encode($arr['attach']);
}