aboutsummaryrefslogtreecommitdiffstats
path: root/include/hubloc.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-22 20:30:23 -0700
committerfriendica <info@friendica.com>2015-03-22 20:30:23 -0700
commit62b2fa6ac7ee85c8572eb868eb30dc2e20cf3040 (patch)
tree629021d00233ee55571cd9071ec00c319186b885 /include/hubloc.php
parentccef9e5636dadeb37cabd70d4a8aece650e70e1f (diff)
downloadvolse-hubzilla-62b2fa6ac7ee85c8572eb868eb30dc2e20cf3040.tar.gz
volse-hubzilla-62b2fa6ac7ee85c8572eb868eb30dc2e20cf3040.tar.bz2
volse-hubzilla-62b2fa6ac7ee85c8572eb868eb30dc2e20cf3040.zip
operation snakebite, cont.
Diffstat (limited to 'include/hubloc.php')
-rw-r--r--include/hubloc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hubloc.php b/include/hubloc.php
index 98c1a21f3..ece7bd21a 100644
--- a/include/hubloc.php
+++ b/include/hubloc.php
@@ -256,12 +256,12 @@ function xchan_fetch($arr) {
if(! $key)
return false;
- $r = q("select * from xchan where $key = '$v'");
+ $r = q("select * from xchan where $key = '$v' limit 1");
if(! $r)
return false;
$ret = array();
- foreach($r as $k => $v) {
+ foreach($r[0] as $k => $v) {
if($k === 'xchan_addr')
$ret['address'] = $v;
else