aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/items.php3
-rw-r--r--include/network.php4
2 files changed, 4 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index 839660509..272ce5a69 100644
--- a/include/items.php
+++ b/include/items.php
@@ -726,7 +726,8 @@ function get_item_elements($x,$allow_code = false) {
$arr['term'] = decode_tags($x['tags']);
$arr['iconfig'] = decode_item_meta($x['meta']);
- $arr['item_private'] = ((array_key_exists('flags',$x) && is_array($x['flags']) && in_array('private',$x['flags'])) ? 1 : 0);
+ $private_state = (($x['allow_cid'] && !$x['allow_gid']) ? 2 : 1);
+ $arr['item_private'] = ((array_key_exists('flags',$x) && is_array($x['flags']) && in_array('private',$x['flags'])) ? $private_state : 0);
$arr['item_flags'] = 0;
diff --git a/include/network.php b/include/network.php
index fcc7b4289..77b7c49d6 100644
--- a/include/network.php
+++ b/include/network.php
@@ -1118,9 +1118,9 @@ function discover_by_url($url, $arr = null) {
/**
* @brief
*
- * @param string $webbie
+ * @param string $webbie (TODO: explain)
* @param string $protocol (optional) default empty
- * @return boolean
+ * @return boolean|string (TODO: explain)
*/
function discover_by_webbie($webbie, $protocol = '') {