aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorThomas Willingham <beardyunixer@beardyunixer.com>2014-12-15 15:59:47 +0000
committerThomas Willingham <beardyunixer@beardyunixer.com>2014-12-15 15:59:47 +0000
commit204a2c94cd3e8e7e60480dd8628e3dea96597c64 (patch)
tree9b69d8d8be131af2c119aa19076ae3e17b8ceb24 /include/network.php
parent372b7b1405f7d2da71dd073ee995bec685fb419d (diff)
downloadvolse-hubzilla-204a2c94cd3e8e7e60480dd8628e3dea96597c64.tar.gz
volse-hubzilla-204a2c94cd3e8e7e60480dd8628e3dea96597c64.tar.bz2
volse-hubzilla-204a2c94cd3e8e7e60480dd8628e3dea96597c64.zip
Undo accidental reversion included in last checkin
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/network.php b/include/network.php
index ee2a6a59b..15e605673 100644
--- a/include/network.php
+++ b/include/network.php
@@ -1092,8 +1092,7 @@ function discover_by_webbie($webbie) {
$r = q("select * from xchan where xchan_hash = '%s' limit 1",
dbesc($webbie)
);
- if($r)
- return true;
+ if(! $r) {
$r = q("insert into xchan ( xchan_hash, xchan_guid, xchan_pubkey, xchan_addr, xchan_url, xchan_name, xchan_network, xchan_instance_url, xchan_name_date ) values ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s') ",
dbesc($addr),
@@ -1106,6 +1105,7 @@ function discover_by_webbie($webbie) {
dbesc(z_root()),
dbescdate(datetime_convert())
);
+ }
$r = q("select * from hubloc where hubloc_hash = '%s' limit 1",
dbesc($webbie)