aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-11 21:45:27 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-11 21:45:27 -0700
commit1f2f483531c8ca59d429aa0c3fe6124fd09c2a00 (patch)
treebfa478d76a8e4c3474d0e67a90a24ba0d99ac729 /mod/network.php
parent3d7bb9c37c500c7c2aee2978d982d653f356b1c8 (diff)
downloadvolse-hubzilla-1f2f483531c8ca59d429aa0c3fe6124fd09c2a00.tar.gz
volse-hubzilla-1f2f483531c8ca59d429aa0c3fe6124fd09c2a00.tar.bz2
volse-hubzilla-1f2f483531c8ca59d429aa0c3fe6124fd09c2a00.zip
bare naked linefeed \n crept into SQL
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/mod/network.php b/mod/network.php
index 4970f69f0..1a68304e8 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -81,10 +81,8 @@ function network_content(&$a, $update = false) {
$contacts = expand_groups(array($group));
$contact_str = implode(',',$contacts);
- $sql_extra = dbesc(" AND `item`.`parent` IN
- ( SELECT `parent` FROM `item` WHERE `id` = `parent` AND `contact-id` IN ( $contact_str )) ");
+ $sql_extra = dbesc(" AND `item`.`parent` IN ( SELECT `parent` FROM `item` WHERE `id` = `parent` AND `contact-id` IN ( $contact_str )) ");
- $sql_extra = dbesc(" AND `contact`.`id` IN ( $contact_str ) ");
$o = '<h4>' . t('Group: ') . $r[0]['name'] . '</h4>' . $o;
}