Eliminate undefined index

svn path=/trunk/boinc/; revision=6118
This commit is contained in:
Bruce Allen 2005-05-11 10:26:53 +00:00
parent 614c50bd20
commit dbae4e9ca1
2 changed files with 6 additions and 2 deletions

View File

@ -6431,5 +6431,6 @@ Bruce 11 May 2005
show_host_detail.php
team_display.php
top_hosts.php
top_users.php
logout.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;