aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Profiles.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-02-23 20:27:12 -0800
committerzotlabs <mike@macgirvin.com>2017-02-23 20:27:12 -0800
commit732dfa63c783fe2e965d1051e0dea587b17aafa6 (patch)
tree7784a03861c44d2f3bce720769701d4d754629f2 /Zotlabs/Module/Profiles.php
parentb1ff5367e7e853d7e0e24c91aecc3a8f80d0ba87 (diff)
downloadvolse-hubzilla-732dfa63c783fe2e965d1051e0dea587b17aafa6.tar.gz
volse-hubzilla-732dfa63c783fe2e965d1051e0dea587b17aafa6.tar.bz2
volse-hubzilla-732dfa63c783fe2e965d1051e0dea587b17aafa6.zip
deleting profile vcard entries was pretty well borked
Diffstat (limited to 'Zotlabs/Module/Profiles.php')
-rw-r--r--Zotlabs/Module/Profiles.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/Profiles.php b/Zotlabs/Module/Profiles.php
index da8b16b00..d6c9d6570 100644
--- a/Zotlabs/Module/Profiles.php
+++ b/Zotlabs/Module/Profiles.php
@@ -317,8 +317,10 @@ class Profiles extends \Zotlabs\Web\Controller {
$hide_friends = ((intval($_POST['hide_friends'])) ? 1: 0);
+// start fresh and create a new vcard. TODO: preserve the original guid or whatever else needs saving
+// $orig_vcard = (($orig[0]['profile_vcard']) ? \Sabre\VObject\Reader::read($orig[0]['profile_vcard']) : null);
- $orig_vcard = (($orig[0]['profile_vcard']) ? \Sabre\VObject\Reader::read($orig[0]['profile_vcard']) : null);
+ $orig_vcard = null;
$channel = \App::get_channel();
@@ -700,7 +702,7 @@ class Profiles extends \Zotlabs\Web\Controller {
$vc = $r[0]['profile_vcard'];
$vctmp = (($vc) ? \Sabre\VObject\Reader::read($vc) : null);
- $vcard = (($vctmp) ? get_vcard_array($vctmp,$contact['abook_id']) : [] );
+ $vcard = (($vctmp) ? get_vcard_array($vctmp,$r[0]['id']) : [] );
$f = get_config('system','birthday_input_format');
if(! $f)