eliminate undefined index

svn path=/trunk/boinc/; revision=6115
This commit is contained in:
Bruce Allen 2005-05-11 10:07:15 +00:00
parent 35847ea4bf
commit f17972048e
2 changed files with 6 additions and 2 deletions

View File

@ -6430,4 +6430,5 @@ Bruce 11 May 2005
top_teams.php
show_host_detail.php
team_display.php
top_hosts.php

View File

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