From dbae4e9ca12e3bcb88656b3fa0c7981f5042159f Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Wed, 11 May 2005 10:26:53 +0000 Subject: [PATCH] Eliminate undefined index svn path=/trunk/boinc/; revision=6118 --- checkin_notes | 1 + html/user/top_users.php | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index 50bbadbee8..b54d60d2c9 100755 --- a/checkin_notes +++ b/checkin_notes @@ -6431,5 +6431,6 @@ Bruce 11 May 2005 show_host_detail.php team_display.php top_hosts.php + top_users.php logout.php diff --git a/html/user/top_users.php b/html/user/top_users.php index 4fbf3947e5..06e601b9f6 100644 --- a/html/user/top_users.php +++ b/html/user/top_users.php @@ -5,8 +5,11 @@ require_once("../inc/util.inc"); $n = 20; -$sort_by = $_GET["sort_by"]; -if (!$sort_by) $sort_by = "expavg_credit"; +if (isset($_GET["sort_by"])) { + $sort_by = $_GET["sort_by"]; +} else { + $sort_by = "expavg_credit"; +} $offset = get_int("offset", true); if (!$offset) $offset=0;