From 95ebdbda2d5c97d967bd57ee21e7c4dfbc9bf416 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 9 Sep 2008 06:07:54 +0000 Subject: [PATCH] - web: report error correctly svn path=/trunk/boinc/; revision=15980 --- checkin_notes | 6 ++++++ html/user/show_user.php | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index 055ed52a71..98643313b9 100644 --- a/checkin_notes +++ b/checkin_notes @@ -7299,3 +7299,9 @@ David 8 Sept 2008 html/user/ hosts_user.php + +David 9 Sept 2008 + - web: report error correctly + + html/user/ + show_user.php diff --git a/html/user/show_user.php b/html/user/show_user.php index 8afc00fdc0..2365e56646 100644 --- a/html/user/show_user.php +++ b/html/user/show_user.php @@ -33,9 +33,11 @@ require_once("../inc/user.inc"); require_once("../inc/forum.inc"); require_once("../project/project.inc"); -$id = get_int("userid", true); -$format = get_str("format", true); $auth = get_str("auth", true); +if (!$auth) { + $id = get_int("userid"); +} +$format = get_str("format", true); if ($format=="xml"){ // XML doesn't need translating, so use the full-file cache for this