aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2014-04-10 09:04:35 -0700
committerMatt Friedman <maf675@gmail.com>2014-04-10 09:04:35 -0700
commit49885e55e74335a6e2a1135bd00f23b01849ae80 (patch)
tree17b6e482a1cc164023cbf696fa2da05d90cb3c6d
parent2284e2897f2573467a20cb90579e7b4bb8af392c (diff)
downloadforums-49885e55e74335a6e2a1135bd00f23b01849ae80.tar
forums-49885e55e74335a6e2a1135bd00f23b01849ae80.tar.gz
forums-49885e55e74335a6e2a1135bd00f23b01849ae80.tar.bz2
forums-49885e55e74335a6e2a1135bd00f23b01849ae80.tar.xz
forums-49885e55e74335a6e2a1135bd00f23b01849ae80.zip
[ticket/12380] Sort Remember Me keys by last login time in UCP
PHPBB3-12380
-rw-r--r--phpBB/includes/ucp/ucp_profile.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php
index a14f79f9fd..fc1b7153d2 100644
--- a/phpBB/includes/ucp/ucp_profile.php
+++ b/phpBB/includes/ucp/ucp_profile.php
@@ -672,7 +672,8 @@ class ucp_profile
$sql = 'SELECT key_id, last_ip, last_login
FROM ' . SESSIONS_KEYS_TABLE . '
- WHERE user_id = ' . (int) $user->data['user_id'];
+ WHERE user_id = ' . (int) $user->data['user_id'] . '
+ ORDER BY last_login';
$result = $db->sql_query($sql);