From 1896855c8540101abb7af9bbc3aa45d738750d95 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 4 Nov 2014 17:38:49 -0800 Subject: minor adjustments to make the form work as designed --- mod/connedit.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mod/connedit.php') diff --git a/mod/connedit.php b/mod/connedit.php index 0e129e32d..60f284797 100644 --- a/mod/connedit.php +++ b/mod/connedit.php @@ -68,7 +68,7 @@ function connedit_post(&$a) { call_hooks('contact_edit_post', $_POST); - if($orig_record['abook_flags'] & ABOOK_FLAG_SELF) { + if($orig_record[0]['abook_flags'] & ABOOK_FLAG_SELF) { $autoperms = intval($_POST['autoperms']); } else { @@ -216,9 +216,10 @@ function connedit_post(&$a) { $arr = array('channel_id' => local_user(), 'abook' => $a->poi); call_hooks('accept_follow', $arr); } - +dbg(1); if(! is_null($autoperms)) set_pconfig(local_user(),'system','autoperms',(($autoperms) ? $abook_my_perms : 0)); +dbg(0); connedit_clone($a); -- cgit v1.2.3