aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-26 21:20:16 -0800
committerfriendica <info@friendica.com>2012-11-26 21:20:16 -0800
commit941c554031de5a7ccb9dd685bec36cead508d41c (patch)
tree361b9530ddd1c1424e34d3e11ce518f941071bee /include/items.php
parented9d7257b03a585bbdd76241e5b49668eb6fc309 (diff)
downloadvolse-hubzilla-941c554031de5a7ccb9dd685bec36cead508d41c.tar.gz
volse-hubzilla-941c554031de5a7ccb9dd685bec36cead508d41c.tar.bz2
volse-hubzilla-941c554031de5a7ccb9dd685bec36cead508d41c.zip
You've got mail! (actually a post, mail is for another day)
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 605dcd51a..ed1c08b68 100755
--- a/include/items.php
+++ b/include/items.php
@@ -489,6 +489,8 @@ function get_item_elements($x) {
$arr['item_private'] = ((array_key_exists('flags',$x) && is_array($x['flags']) && in_array('private',$x['flags'])) ? 1 : 0);
+ if(array_key_exists('flags',$x) && in_array('deleted',$x['flags']))
+ $arr['item_restrict'] = ITEM_DELETED;
// Here's the deal - the site might be down or whatever but if there's a new person you've never
// seen before sending stuff to your stream, we MUST be able to look them up and import their data from their
@@ -1262,7 +1264,7 @@ function item_store($arr,$force_parent = false) {
// pull out all the taxonomy stuff for separate storage
$terms = null;
- if(x($arr,'term')) {
+ if(array_key_exists('term',$arr)) {
$terms = $arr['term'];
unset($arr['term']);
}