From 35847ea4bfd6c32cf8b5fc2680312b3a119bf603 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Wed, 11 May 2005 10:03:27 +0000 Subject: [PATCH] Eliminate undefined index svn path=/trunk/boinc/; revision=6114 --- html/user/top_teams.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/html/user/top_teams.php b/html/user/top_teams.php index 47549ab68c..e44cb70125 100644 --- a/html/user/top_teams.php +++ b/html/user/top_teams.php @@ -6,8 +6,11 @@ require_once("../inc/team.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; $type = get_int("type", true);