aboutsummaryrefslogtreecommitdiffstats
path: root/mod/connedit.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-03 14:03:43 -0800
committerfriendica <info@friendica.com>2014-02-03 14:03:43 -0800
commitc4d088459634d8148620a27c56ba06b33814668f (patch)
treebb225ee3b1136f4a178605a66527fb34417f3c43 /mod/connedit.php
parent6c91580716524e03d68d6d3c95f0fa38b91a1362 (diff)
downloadvolse-hubzilla-c4d088459634d8148620a27c56ba06b33814668f.tar.gz
volse-hubzilla-c4d088459634d8148620a27c56ba06b33814668f.tar.bz2
volse-hubzilla-c4d088459634d8148620a27c56ba06b33814668f.zip
accept new connection broke yesterday
Diffstat (limited to 'mod/connedit.php')
-rw-r--r--mod/connedit.php5
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