From 39dbc2fd3c68013bb7f3b8f481db081f26e188a5 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Wed, 11 May 2005 09:57:46 +0000 Subject: [PATCH] Get rid of another undefined index svn path=/trunk/boinc/; revision=6113 --- checkin_notes | 1 + html/user/team_display.php | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index 7cf8cb7cb4..b847d82d0e 100755 --- a/checkin_notes +++ b/checkin_notes @@ -6429,4 +6429,5 @@ Bruce 11 May 2005 download_network.php top_teams.php show_host_detail.php + team_display.php diff --git a/html/user/team_display.php b/html/user/team_display.php index 103c86b2a2..40ecdc7114 100644 --- a/html/user/team_display.php +++ b/html/user/team_display.php @@ -2,8 +2,12 @@ require_once("../inc/cache.inc"); require_once("../inc/util.inc"); -$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; $teamid = get_int("teamid");