diff options
author | mrjive <mrjive@mrjive.it> | 2018-02-02 09:23:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-02 09:23:55 +0100 |
commit | d7ecaa8b23a36ea1e9a0f185017930b5552c00b5 (patch) | |
tree | bc3c6b600f7949ea3adf6854c0bf1690ae6e772e /Zotlabs/Module/Connedit.php | |
parent | 7ac4b477020689572a50dbc777c968263e86f6c4 (diff) | |
parent | 512f3a764361dde44e36fb72c105265d6df298ad (diff) | |
download | volse-hubzilla-d7ecaa8b23a36ea1e9a0f185017930b5552c00b5.tar.gz volse-hubzilla-d7ecaa8b23a36ea1e9a0f185017930b5552c00b5.tar.bz2 volse-hubzilla-d7ecaa8b23a36ea1e9a0f185017930b5552c00b5.zip |
Merge pull request #14 from redmatrix/dev
Dev
Diffstat (limited to 'Zotlabs/Module/Connedit.php')
-rw-r--r-- | Zotlabs/Module/Connedit.php | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/Zotlabs/Module/Connedit.php b/Zotlabs/Module/Connedit.php index 8288886cd..e23a751d9 100644 --- a/Zotlabs/Module/Connedit.php +++ b/Zotlabs/Module/Connedit.php @@ -826,27 +826,10 @@ class Connedit extends \Zotlabs\Web\Controller { } } - $locstr = ''; - - $locs = q("select hubloc_addr as location from hubloc left join site on hubloc_url = site_url where hubloc_hash = '%s' - and hubloc_deleted = 0 and site_dead = 0", - dbesc($contact['xchan_hash']) - ); - - if($locs) { - foreach($locs as $l) { - if(!($l['location'])) - continue; - if(strpos($locstr,$l['location']) !== false) - continue; - if(strlen($locstr)) - $locstr .= ', '; - $locstr .= $l['location']; - } - } - else + $locstr = locations_by_netid($contact['xchan_hash']); + if(! $locstr) $locstr = $contact['xchan_url']; - + $clone_warn = ''; $clonable = (in_array($contact['xchan_network'],['zot','rss']) ? true : false); if(! $clonable) { |