aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcvogeley <christian.vogeley@hotmail.de>2014-09-20 22:41:47 +0100
committercvogeley <christian.vogeley@hotmail.de>2014-09-20 22:41:47 +0100
commita1773fea2529e6e3b1dcc816e948dacb4a250705 (patch)
tree674df1e2544be7c700d3ae2d40a6af87b267e2a0
parent69a10e8ca737a5848dd888879b32a95fa7267ad5 (diff)
parent89fec0e085c5e2a902af301af2eb8fd3154a81e6 (diff)
downloadvolse-hubzilla-a1773fea2529e6e3b1dcc816e948dacb4a250705.tar.gz
volse-hubzilla-a1773fea2529e6e3b1dcc816e948dacb4a250705.tar.bz2
volse-hubzilla-a1773fea2529e6e3b1dcc816e948dacb4a250705.zip
Merge pull request #598 from cvogeley/master
Allow ordering by created
-rw-r--r--mod/admin.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/admin.php b/mod/admin.php
index 68ce6fe85..06f44c89b 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -687,7 +687,9 @@ function admin_page_users(&$a){
$order = " order by account_email asc ";
if($_REQUEST['order'] === 'expires')
$order = " order by account_expires desc ";
-
+ if($_REQUEST['order'] === 'created')
+ $order = " order by account_created desc ";
+
$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 and not (ch.channel_pageflags & %d )) as `channels` " .