Get rid of another undefined index

svn path=/trunk/boinc/; revision=6113
This commit is contained in:
Bruce Allen 2005-05-11 09:57:46 +00:00
parent a84e48af43
commit 39dbc2fd3c
2 changed files with 7 additions and 2 deletions

View File

@ -6429,4 +6429,5 @@ Bruce 11 May 2005
download_network.php
top_teams.php
show_host_detail.php
team_display.php

View File

@ -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");