From f17972048e8811d956aa2c034b3b14aa7c84fad2 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Wed, 11 May 2005 10:07:15 +0000 Subject: [PATCH] eliminate undefined index svn path=/trunk/boinc/; revision=6115 --- checkin_notes | 1 + html/user/top_hosts.php | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index b847d82d0e..6b9de29db6 100755 --- a/checkin_notes +++ b/checkin_notes @@ -6430,4 +6430,5 @@ Bruce 11 May 2005 top_teams.php show_host_detail.php team_display.php + top_hosts.php diff --git a/html/user/top_hosts.php b/html/user/top_hosts.php index 0b4a1cf49c..f6d6d22884 100644 --- a/html/user/top_hosts.php +++ b/html/user/top_hosts.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;