diff options
author | marijus <mario@localhost.localdomain> | 2014-02-04 16:19:35 +0100 |
---|---|---|
committer | marijus <mario@localhost.localdomain> | 2014-02-04 16:19:35 +0100 |
commit | 4253581733d4c6c7f0dce5c3ea7566c6af4af936 (patch) | |
tree | 1eadff45b06adcac3f93432beea63b7ccd7391ff /mod/connedit.php | |
parent | 2a9baa1f325b62541ad7a7b68e91455b104677bd (diff) | |
parent | 74298c44ae445125bfc2b13d20da91b9d349ce43 (diff) | |
download | volse-hubzilla-4253581733d4c6c7f0dce5c3ea7566c6af4af936.tar.gz volse-hubzilla-4253581733d4c6c7f0dce5c3ea7566c6af4af936.tar.bz2 volse-hubzilla-4253581733d4c6c7f0dce5c3ea7566c6af4af936.zip |
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'mod/connedit.php')
-rw-r--r-- | mod/connedit.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/connedit.php b/mod/connedit.php index b7101fcab..3f507cc3b 100644 --- a/mod/connedit.php +++ b/mod/connedit.php @@ -32,7 +32,7 @@ function connedit_init(&$a) { } function connedit_post(&$a) { - + if(! local_user()) return; @@ -86,6 +86,8 @@ function connedit_post(&$a) { $abook_flags = $orig_record[0]['abook_flags']; $new_friend = false; + + if(($_REQUEST['pending']) && ($abook_flags & ABOOK_FLAG_PENDING)) { $abook_flags = ( $abook_flags ^ ABOOK_FLAG_PENDING ); $new_friend = true; @@ -100,6 +102,7 @@ function connedit_post(&$a) { intval($contact_id), intval(local_user()) ); + if($r) info( t('Connection updated.') . EOL); else |