From 2e4177796364ca4edb3a29e7646545649d57c56a Mon Sep 17 00:00:00 2001 From: tuscanhobbit Date: Sat, 23 Nov 2013 19:46:07 +0100 Subject: [PATCH] a reference to account_id was missing in user admin table --- mod/admin.php | 5 +++-- view/tpl/admin_users.tpl | 14 ++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/mod/admin.php b/mod/admin.php index 1615412b5..5a3ec48f7 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -649,7 +649,8 @@ function admin_page_users(&$a){ if($_REQUEST['order'] === 'expires') $order = " order by account_expires desc "; - $users =q("SELECT `account_id` , `account_email`, `account_lastlog`, `account_created`, `account_expires`, `account_service_class` FROM `account` where true $serviceclass $order limit %d , %d ", + $users =q("SELECT `account_id` , `account_email`, `account_lastlog`, `account_created`, `account_expires`, `account_service_class`, ( account_flags & %d ) > 0 as `blocked` FROM `account` where true $serviceclass $order limit %d , %d ", + intval(ACCOUNT_BLOCKED), intval($a->pager['start']), intval($a->pager['itemspage']) ); @@ -686,7 +687,7 @@ function admin_page_users(&$a){ '$delete' => t('Delete'), '$block' => t('Block'), '$unblock' => t('Unblock'), - + '$h_users' => t('Users'), '$th_users' => array( t('Email'), t('Register date'), t('Last login'), t('Expires'), t('Service Class')), diff --git a/view/tpl/admin_users.tpl b/view/tpl/admin_users.tpl index cedd55216..609289013 100755 --- a/view/tpl/admin_users.tpl +++ b/view/tpl/admin_users.tpl @@ -55,7 +55,6 @@ - {{foreach $th_users as $th}}{{/foreach}} @@ -64,16 +63,19 @@ {{foreach $users as $u}} - - + - + {{/foreach}}
{{$th}}
{{$u.nickname}} {{$u.account_created}} {{$u.account_service_class}} - - + +