aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewonline.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-10-30 16:20:11 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-10-30 16:20:11 +0000
commitc44f6ca080c944b57dc912de8708e5239c1543a2 (patch)
tree812e6cdb05ee83c0270f8d72d2e064adcb75064a /phpBB/viewonline.php
parent7e55e53d10702a9d8af8a70685801aa486fab3dc (diff)
downloadforums-c44f6ca080c944b57dc912de8708e5239c1543a2.tar
forums-c44f6ca080c944b57dc912de8708e5239c1543a2.tar.gz
forums-c44f6ca080c944b57dc912de8708e5239c1543a2.tar.bz2
forums-c44f6ca080c944b57dc912de8708e5239c1543a2.tar.xz
forums-c44f6ca080c944b57dc912de8708e5239c1543a2.zip
some fixes
git-svn-id: file:///svn/phpbb/trunk@6538 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewonline.php')
-rw-r--r--phpBB/viewonline.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php
index 3edf7090d6..f38073a80b 100644
--- a/phpBB/viewonline.php
+++ b/phpBB/viewonline.php
@@ -33,6 +33,11 @@ $sort_key_text = array('a' => $user->lang['SORT_USERNAME'], 'b' => $user->lang['
$sort_key_sql = array('a' => 'u.username', 'b' => 's.session_time', 'c' => 's.session_page');
// Sorting and order
+if (!isset($sort_key_text[$sort_key]))
+{
+ $sort_key = 'b';
+}
+
$order_by = $sort_key_sql[$sort_key] . ' ' . (($sort_dir == 'a') ? 'ASC' : 'DESC');
// Whois requested