aboutsummaryrefslogtreecommitdiffstats
path: root/mod/connections.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-19 19:16:46 -0800
committerfriendica <info@friendica.com>2013-12-19 19:16:46 -0800
commitbccc20f38c3919d453b0dee1ed354aa4eb13b398 (patch)
tree0e9fa8e0de4e4e6807223ac176a55ad8e3bce77e /mod/connections.php
parent648a7a5735148479fc8d97bfaa1f3d3cca249276 (diff)
downloadvolse-hubzilla-bccc20f38c3919d453b0dee1ed354aa4eb13b398.tar.gz
volse-hubzilla-bccc20f38c3919d453b0dee1ed354aa4eb13b398.tar.bz2
volse-hubzilla-bccc20f38c3919d453b0dee1ed354aa4eb13b398.zip
default photo issue, and connections page showing deleted accounts. Also show last updated on connedit page
Diffstat (limited to 'mod/connections.php')
-rw-r--r--mod/connections.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/connections.php b/mod/connections.php
index 0365a0585..2119c69c7 100644
--- a/mod/connections.php
+++ b/mod/connections.php
@@ -300,9 +300,10 @@ function connections_content(&$a) {
$r = q("SELECT COUNT(abook.abook_id) AS total FROM abook left join xchan on abook.abook_xchan = xchan.xchan_hash
- where abook_channel = %d and not (abook_flags & %d) $sql_extra $sql_extra2 ",
+ where abook_channel = %d and not (abook_flags & %d) and not (xchan_flags & %d ) $sql_extra $sql_extra2 ",
intval(local_user()),
- intval(ABOOK_FLAG_SELF)
+ intval(ABOOK_FLAG_SELF),
+ intval(XCHAN_FLAGS_DELETED)
);
if(count($r)) {
$a->set_pager_total($r[0]['total']);
@@ -310,9 +311,10 @@ function connections_content(&$a) {
}
$r = q("SELECT abook.*, xchan.* FROM abook left join xchan on abook.abook_xchan = xchan.xchan_hash
- WHERE abook_channel = %d and not (abook_flags & %d) $sql_extra $sql_extra2 ORDER BY xchan_name LIMIT %d , %d ",
+ WHERE abook_channel = %d and not (abook_flags & %d) and not ( xchan_flags & %d) $sql_extra $sql_extra2 ORDER BY xchan_name LIMIT %d , %d ",
intval(local_user()),
intval(ABOOK_FLAG_SELF),
+ intval(XCHAN_FLAGS_DELETED),
intval($a->pager['start']),
intval($a->pager['itemspage'])
);