]> git.mxchange.org Git - friendica.git/commitdiff
bug #247
authorfriendica <info@friendica.com>
Wed, 21 Dec 2011 09:45:15 +0000 (01:45 -0800)
committerfriendica <info@friendica.com>
Wed, 21 Dec 2011 09:45:15 +0000 (01:45 -0800)
mod/network.php

index 8fa0b03e267f1c38a0174ebc8c583d7fe8a2bada..57e120e86634160d3d581529bcddce95d1200500 100644 (file)
@@ -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) {