aboutsummaryrefslogtreecommitdiffstats
path: root/mod/xchan.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-05 18:51:50 -0800
committerfriendica <info@friendica.com>2014-02-05 18:51:50 -0800
commitcb6716a644dad4c7c196330cf945de36a000e5a3 (patch)
tree639b57eeb12222d66e4f99f954e262f09a2c9372 /mod/xchan.php
parent1b406be544a2e434b56eed26bab14ede63fe2104 (diff)
downloadvolse-hubzilla-cb6716a644dad4c7c196330cf945de36a000e5a3.tar.gz
volse-hubzilla-cb6716a644dad4c7c196330cf945de36a000e5a3.tar.bz2
volse-hubzilla-cb6716a644dad4c7c196330cf945de36a000e5a3.zip
fix the xchan lookup tool
Diffstat (limited to 'mod/xchan.php')
-rw-r--r--mod/xchan.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/xchan.php b/mod/xchan.php
index 984a62f95..9d4cdcc22 100644
--- a/mod/xchan.php
+++ b/mod/xchan.php
@@ -14,9 +14,11 @@ function xchan_content(&$a) {
if(x($_GET,'addr')) {
$addr = trim($_GET['addr']);
+
$r = q("select xchan_name from xchan where xchan_hash like '%s%%'",
- dbesc(addr)
+ dbesc($addr)
);
+
if($r) {
foreach($r as $rr)
$o .= $rr['xchan_name'] . EOL;