From 372b7b1405f7d2da71dd073ee995bec685fb419d Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Mon, 15 Dec 2014 15:56:00 +0000 Subject: Doco: How to write foreign doco in how to write doco doco. --- include/network.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/network.php b/include/network.php index db48caf37..ee2a6a59b 100644 --- a/include/network.php +++ b/include/network.php @@ -1092,7 +1092,9 @@ function discover_by_webbie($webbie) { $r = q("select * from xchan where xchan_hash = '%s' limit 1", dbesc($webbie) ); - if(! $r) { + if($r) + return true; + $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), dbesc($guid), @@ -1104,7 +1106,6 @@ function discover_by_webbie($webbie) { dbesc(z_root()), dbescdate(datetime_convert()) ); - } $r = q("select * from hubloc where hubloc_hash = '%s' limit 1", dbesc($webbie) -- cgit v1.2.3