diff options
author | Friendika <info@friendika.com> | 2011-02-04 13:37:04 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-04 13:37:04 -0800 |
commit | 1d0d765344e155086a65b8b56c1c0ec70d9a8a15 (patch) | |
tree | e3c1edbb68f9b2204d6db39d03497ce4ac8e01e5 /include/items.php | |
parent | 6bb8f677c243ab5242919215cece97125143f943 (diff) | |
download | volse-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.php | 6 |
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']; |