aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-20 19:31:50 -0800
committerzotlabs <mike@macgirvin.com>2016-12-20 19:31:50 -0800
commita270ca51014e8bf98554bd5e8eda33a44aa60460 (patch)
tree24070d3d0039de5eb1cd0b27aff15371894d1548 /Zotlabs/Module
parent493aa9f20d3a48132a83b1da0c643f80c038e617 (diff)
downloadvolse-hubzilla-a270ca51014e8bf98554bd5e8eda33a44aa60460.tar.gz
volse-hubzilla-a270ca51014e8bf98554bd5e8eda33a44aa60460.tar.bz2
volse-hubzilla-a270ca51014e8bf98554bd5e8eda33a44aa60460.zip
allow update of fn and initial setting from channel name
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Connedit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Module/Connedit.php b/Zotlabs/Module/Connedit.php
index 55113eb82..9d55d8ace 100644
--- a/Zotlabs/Module/Connedit.php
+++ b/Zotlabs/Module/Connedit.php
@@ -657,6 +657,9 @@ class Connedit extends \Zotlabs\Web\Controller {
$vctmp = (($vc) ? \Sabre\VObject\Reader::read($vc) : null);
$vcard = (($vctmp) ? get_vcard_array($vctmp,$contact['abook_id']) : [] );
+ if(! $vcard)
+ $vcard['fn'] = $contact['xchan_name'];
+
$tpl = get_markup_template("abook_edit.tpl");