aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-12-21 01:45:15 -0800
committerfriendica <info@friendica.com>2011-12-21 01:45:15 -0800
commit048fcae40b260b04e7b2e1774c1c72b69f790212 (patch)
treef2209be5b0375927aae0c2d206e73f2a75c090cb /mod
parentd9ede7f7bd1f2a1ab1bacaf4a37a66fd79fd32e4 (diff)
downloadvolse-hubzilla-048fcae40b260b04e7b2e1774c1c72b69f790212.tar.gz
volse-hubzilla-048fcae40b260b04e7b2e1774c1c72b69f790212.tar.bz2
volse-hubzilla-048fcae40b260b04e7b2e1774c1c72b69f790212.zip
bug #247
Diffstat (limited to 'mod')
-rw-r--r--mod/network.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/network.php b/mod/network.php
index 8fa0b03e2..57e120e86 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -301,7 +301,8 @@ function network_content(&$a, $update = 0) {
}
- $sql_extra = " AND `item`.`parent` IN ( SELECT `parent` FROM `item` WHERE `id` = `parent` $star_sql AND ( `contact-id` IN ( $contact_str ) OR `allow_gid` REGEXP '<" . intval($group) . ">' )) ";
+// $sql_extra = " AND `item`.`parent` IN ( SELECT `parent` FROM `item` WHERE `id` = `parent` $star_sql AND ( `contact-id` IN ( $contact_str ) OR `allow_gid` REGEXP '<" . intval($group) . ">' )) ";
+ $sql_extra = " AND `item`.`parent` IN ( SELECT DISTINCT(`parent`) FROM `item` WHERE 1 $star_sql AND ( `contact-id` IN ( $contact_str ) OR `allow_gid` REGEXP '<" . intval($group) . ">' )) ";
$o = '<h2>' . t('Group: ') . $r[0]['name'] . '</h2>' . $o;
}
elseif($cid) {