aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-27 21:40:56 -0700
committerfriendica <info@friendica.com>2013-06-27 21:40:56 -0700
commit6fba7ac1aff92e327357d21b00e8919e041d8395 (patch)
tree2b13b55a12616503d187e56cd858ec57f3e29002 /mod
parentae8316a2ca023ab49275dd3671180bf0e067abab (diff)
downloadvolse-hubzilla-6fba7ac1aff92e327357d21b00e8919e041d8395.tar.gz
volse-hubzilla-6fba7ac1aff92e327357d21b00e8919e041d8395.tar.bz2
volse-hubzilla-6fba7ac1aff92e327357d21b00e8919e041d8395.zip
fix cid query
Diffstat (limited to 'mod')
-rw-r--r--mod/network.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/network.php b/mod/network.php
index bbd9f9de7..aa134eece 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -465,7 +465,7 @@ function network_content(&$a, $update = 0, $load = false) {
intval(local_user())
);
if($r) {
- $sql_extra = " AND item.parent IN ( SELECT DISTINCT parent FROM item WHERE true $sql_options AND uid = " . intval(local_user()) . " AND ( author_xchan = " . dbesc($r[0]['abook_xchan']) . " or owner_xchan = " . dbesc($r[0]['abook_xchan']) . " ) and item_restrict = 0 ) ";
+ $sql_extra = " AND item.parent IN ( SELECT DISTINCT parent FROM item WHERE true $sql_options AND uid = " . intval(local_user()) . " AND ( author_xchan = '" . dbesc($r[0]['abook_xchan']) . "' or owner_xchan = '" . dbesc($r[0]['abook_xchan']) . "' ) and item_restrict = 0 ) ";
$o = '<h2>' . t('Contact: ') . $r[0]['name'] . '</h2>' . $o;
}
else {