aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-13 15:41:13 -0700
committerfriendica <info@friendica.com>2012-03-13 15:41:13 -0700
commit427362c324e5acfad18c72108a59a9e6e5b58550 (patch)
tree7046e107ea723a917959606bfc4c41d2c8ccd2b7 /include/items.php
parentdc84da520d7bde3f2e160d2573a549829fd022cf (diff)
parentacc4bbeb6ebc832da2a8b5a37b764a6a53dd1214 (diff)
downloadvolse-hubzilla-427362c324e5acfad18c72108a59a9e6e5b58550.tar.gz
volse-hubzilla-427362c324e5acfad18c72108a59a9e6e5b58550.tar.bz2
volse-hubzilla-427362c324e5acfad18c72108a59a9e6e5b58550.zip
Merge branch 'pull'
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 1a7aa6c46..70c72ae16 100755
--- a/include/items.php
+++ b/include/items.php
@@ -682,7 +682,7 @@ function item_store($arr,$force_parent = false) {
unset($arr['dsprsig']);
}
- if($arr['gravity'])
+ if(x($arr, 'gravity'))
$arr['gravity'] = intval($arr['gravity']);
elseif($arr['parent-uri'] === $arr['uri'])
$arr['gravity'] = 0;
@@ -742,6 +742,7 @@ function item_store($arr,$force_parent = false) {
if($arr['parent-uri'] === $arr['uri']) {
$parent_id = 0;
+ $parent_deleted = 0;
$allow_cid = $arr['allow_cid'];
$allow_gid = $arr['allow_gid'];
$deny_cid = $arr['deny_cid'];
@@ -800,6 +801,8 @@ function item_store($arr,$force_parent = false) {
logger('item_store: item parent was not found - ignoring item');
return 0;
}
+
+ $parent_deleted = 0;
}
}