Permalink
Browse files

Fixing (minor) logic error [1101] that also occurs in 1.2

  • Loading branch information...
reines committed Aug 13, 2009
1 parent c3e7b9d commit 3d6c20106b06f3838dfb5b9714003e78637f1004
Showing with 1 addition and 1 deletion.
  1. +1 −1 upload/userlist.php
View
@@ -42,7 +42,7 @@
$show_post_count = ($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] < PUN_GUEST) ? true : false;
$username = (isset($_GET['username']) && $pun_user['g_search_users'] == '1') ? pun_trim($_GET['username']) : '';
$show_group = (!isset($_GET['show_group']) || intval($_GET['show_group']) < -1 && intval($_GET['show_group']) > 2) ? -1 : intval($_GET['show_group']);
$show_group = !isset($_GET['show_group']) ? -1 : intval($_GET['show_group']);
$sort_by = (!isset($_GET['sort_by']) || $_GET['sort_by'] != 'username' && $_GET['sort_by'] != 'registered' && ($_GET['sort_by'] != 'num_posts' || !$show_post_count)) ? 'username' : $_GET['sort_by'];
$sort_dir = (!isset($_GET['sort_dir']) || $_GET['sort_dir'] != 'ASC' && $_GET['sort_dir'] != 'DESC') ? 'ASC' : strtoupper($_GET['sort_dir']);

0 comments on commit 3d6c201

Please sign in to comment.