aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2012-03-14 07:20:13 +0100
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2012-03-14 07:20:13 +0100
commit4fcdada4320d5d5619eb3a1f517d0fea6b26857b (patch)
treebc2ba3aac0a08c1464718f688be8080d0dff6d2c /include/items.php
parent5bae7159cc7b182e40229bb6d547ccf303eb4282 (diff)
parentfb77bfa648c3dd06d1b3f343f5ad98f32a7ce313 (diff)
downloadvolse-hubzilla-4fcdada4320d5d5619eb3a1f517d0fea6b26857b.tar.gz
volse-hubzilla-4fcdada4320d5d5619eb3a1f517d0fea6b26857b.tar.bz2
volse-hubzilla-4fcdada4320d5d5619eb3a1f517d0fea6b26857b.zip
Merge branch 'master' of https://github.com/friendica/friendica
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;
}
}