aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-04 13:37:04 -0800
committerFriendika <info@friendika.com>2011-02-04 13:37:04 -0800
commit1d0d765344e155086a65b8b56c1c0ec70d9a8a15 (patch)
treee3c1edbb68f9b2204d6db39d03497ce4ac8e01e5 /include/items.php
parent6bb8f677c243ab5242919215cece97125143f943 (diff)
downloadvolse-hubzilla-1d0d765344e155086a65b8b56c1c0ec70d9a8a15.tar.gz
volse-hubzilla-1d0d765344e155086a65b8b56c1c0ec70d9a8a15.tar.bz2
volse-hubzilla-1d0d765344e155086a65b8b56c1c0ec70d9a8a15.zip
more error checking on posts
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index 0c9d4cfc2..bbd9fbb7c 100644
--- a/include/items.php
+++ b/include/items.php
@@ -740,10 +740,10 @@ function item_store($arr,$force_parent = false) {
return 0;
}
- if($arr['parent-uri'] === $arr['uri'])
+ if((! $parent_id) || ($arr['parent-uri'] === $arr['uri']))
$parent_id = $current_post;
-
- if(strlen($allow_cid) || strlen($allow_gid) || strlen($deny_cid) || strlen($deny_gid))
+
+ if(strlen($allow_cid) || strlen($allow_gid) || strlen($deny_cid) || strlen($deny_gid))
$private = 1;
else
$private = $arr['private'];