From c17f7124f31a6289db75eb71e3b723f286eb7d52 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 15 Aug 2013 01:32:09 -0700 Subject: not able to drop pending connections --- mod/connections.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod/connections.php') 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)) { -- cgit v1.2.3