diff options
author | marijus <mario@localhost.localdomain> | 2014-02-06 14:56:59 +0100 |
---|---|---|
committer | marijus <mario@localhost.localdomain> | 2014-02-06 14:56:59 +0100 |
commit | a2b311991a90e1c78d30bad5504c18bb2a3c5c2a (patch) | |
tree | 54b5e5dbc7230442a3e1ec894c4a4c385b2d78c7 /mod/xchan.php | |
parent | 419e3b5024efec40c98e48c3bf213c4e60d39fae (diff) | |
parent | 7a522be20bd66a0a904dcddf33d53e59aa04a92d (diff) | |
download | volse-hubzilla-a2b311991a90e1c78d30bad5504c18bb2a3c5c2a.tar.gz volse-hubzilla-a2b311991a90e1c78d30bad5504c18bb2a3c5c2a.tar.bz2 volse-hubzilla-a2b311991a90e1c78d30bad5504c18bb2a3c5c2a.zip |
Merge branch 'master' of https://github.com/friendica/red into upstream
Diffstat (limited to 'mod/xchan.php')
-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; |