aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-16 14:39:27 -0800
committerfriendica <info@friendica.com>2014-02-16 14:39:27 -0800
commit663dd39015e3e7ef25dda94f34bfb40c7e494325 (patch)
treefeff972dae03a21378595df2b2cfe4d01b01b903 /mod
parent0f5ebb9b5a84119466fe0c450a10fb10b32b8cbd (diff)
downloadvolse-hubzilla-663dd39015e3e7ef25dda94f34bfb40c7e494325.tar.gz
volse-hubzilla-663dd39015e3e7ef25dda94f34bfb40c7e494325.tar.bz2
volse-hubzilla-663dd39015e3e7ef25dda94f34bfb40c7e494325.zip
don't show deleted channels on admin account summary page
Diffstat (limited to 'mod')
-rw-r--r--mod/admin.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/admin.php b/mod/admin.php
index 01296bd29..c4a284941 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -706,9 +706,10 @@ function admin_page_users(&$a){
$users =q("SELECT `account_id` , `account_email`, `account_lastlog`, `account_created`, `account_expires`, " . "`account_service_class`, ( account_flags & %d ) > 0 as `blocked`, " .
"(SELECT GROUP_CONCAT( ch.channel_address SEPARATOR ' ') FROM channel as ch " .
- "WHERE ch.channel_account_id = ac.account_id) as `channels` " .
+ "WHERE ch.channel_account_id = ac.account_id and not (ch.channel_pageflags & %d )) as `channels` " .
"FROM account as ac where true $serviceclass $order limit %d , %d ",
- intval(ACCOUNT_BLOCKED),
+ intval(ACCOUNT_BLOCKED),
+ intval(PAGE_REMOVED),
intval($a->pager['start']),
intval($a->pager['itemspage'])
);