diff options
author | friendica <info@friendica.com> | 2013-08-15 01:32:09 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-15 01:32:09 -0700 |
commit | c17f7124f31a6289db75eb71e3b723f286eb7d52 (patch) | |
tree | d3fea4db4cdf862a4d559d641389f72749201133 /mod/connections.php | |
parent | efb730cedcc82fadcb8474d44f8820d92b0187e6 (diff) | |
download | volse-hubzilla-c17f7124f31a6289db75eb71e3b723f286eb7d52.tar.gz volse-hubzilla-c17f7124f31a6289db75eb71e3b723f286eb7d52.tar.bz2 volse-hubzilla-c17f7124f31a6289db75eb71e3b723f286eb7d52.zip |
not able to drop pending connections
Diffstat (limited to 'mod/connections.php')
-rw-r--r-- | mod/connections.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/connections.php b/mod/connections.php index 8f779bca5..7c4d8acc1 100644 --- a/mod/connections.php +++ b/mod/connections.php @@ -179,7 +179,8 @@ function connections_content(&$a) { intval($contact_id), intval(local_user()), intval(ABOOK_FLAG_SELF), - intval(ABOOK_FLAG_PENDING) + // allow drop even if pending, just duplicate the self query + intval(($cmd === 'drop') ? ABOOK_FLAG_SELF : ABOOK_FLAG_PENDING) ); if(! count($orig_record)) { |