diff options
author | friendica <info@friendica.com> | 2014-02-05 18:51:50 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-02-05 18:51:50 -0800 |
commit | cb6716a644dad4c7c196330cf945de36a000e5a3 (patch) | |
tree | 639b57eeb12222d66e4f99f954e262f09a2c9372 /mod | |
parent | 1b406be544a2e434b56eed26bab14ede63fe2104 (diff) | |
download | volse-hubzilla-cb6716a644dad4c7c196330cf945de36a000e5a3.tar.gz volse-hubzilla-cb6716a644dad4c7c196330cf945de36a000e5a3.tar.bz2 volse-hubzilla-cb6716a644dad4c7c196330cf945de36a000e5a3.zip |
fix the xchan lookup tool
Diffstat (limited to 'mod')
-rw-r--r-- | mod/xchan.php | 4 |
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; |