From 32e71cf06b7471923dec37b613da3a044f51f28d Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 4 Apr 2014 17:43:44 -0700 Subject: finish "ifpending" connections --- mod/connections.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/connections.php b/mod/connections.php index 99a4d6969..1b5e08cfe 100644 --- a/mod/connections.php +++ b/mod/connections.php @@ -225,11 +225,14 @@ function connections_content(&$a) { $head = t('New'); $pending = true; nav_set_selected('intros'); + $a->argv[1] = 'pending'; } else { $head = t('All'); $search_flags = 0; $all = true; + $a->argc = 1; + unset($a->argv[1]); } break; case 'unconnected': @@ -341,7 +344,7 @@ function connections_content(&$a) { intval(ABOOK_FLAG_SELF), intval(XCHAN_FLAGS_DELETED) ); - if(count($r)) { + if($r) { $a->set_pager_total($r[0]['total']); $total = $r[0]['total']; } -- cgit v1.2.3