diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2006-10-30 16:20:11 +0000 | 
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-10-30 16:20:11 +0000 | 
| commit | c44f6ca080c944b57dc912de8708e5239c1543a2 (patch) | |
| tree | 812e6cdb05ee83c0270f8d72d2e064adcb75064a /phpBB/includes/acp/acp_users.php | |
| parent | 7e55e53d10702a9d8af8a70685801aa486fab3dc (diff) | |
| download | forums-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/includes/acp/acp_users.php')
| -rw-r--r-- | phpBB/includes/acp/acp_users.php | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php index 3a7e86616f..485bff7bc8 100644 --- a/phpBB/includes/acp/acp_users.php +++ b/phpBB/includes/acp/acp_users.php @@ -1741,7 +1741,12 @@ class acp_users  					$s_sort_dir .= '<option value="' . $key . '"' . $selected . '>' . $value . '</option>';  				} -				$order_by = $sk_sql[$sort_key] . '  ' . (($sort_dir == 'a') ? 'ASC' : 'DESC'); +				if (!isset($sk_sql[$sort_key])) +				{ +					$sort_key = 'a'; +				} + +				$order_by = $sk_sql[$sort_key] . ' ' . (($sort_dir == 'a') ? 'ASC' : 'DESC');  				$sql = 'SELECT COUNT(attach_id) as num_attachments  					FROM ' . ATTACHMENTS_TABLE . "  | 
