From 8416293fd56e5afc4e9fc9ba21f92a9d56b8b573 Mon Sep 17 00:00:00 2001 From: "Leigh B. Stoller" <stoller@flux.utah.edu> Date: Fri, 29 Dec 2006 14:20:03 +0000 Subject: [PATCH] Fix minor bug in shownode code; widearea nodes are owneed by "nobody" when no contact info is available. nobody is not an emulab user, so this field should probably be set to null instead. --- www/showstuff.php3 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/www/showstuff.php3 b/www/showstuff.php3 index dba539d103..5352672e94 100644 --- a/www/showstuff.php3 +++ b/www/showstuff.php3 @@ -2814,9 +2814,13 @@ function SHOWWIDEAREANODE($node_id, $embedded = 0) { $site = $row[site]; if (! ($user = User::Lookup($contact_uid))) { - TBERROR("Error getting object for user $contact_uid", 1); + # This is not an error since the field is set to "nobody" when + # there is no contact info. Why is that? + $showuser_url = CreateURL("showuser", URLARG_UID, $contact_uid); + } + else { + $showuser_url = CreateURL("showuser", $user); } - $showuser_url = CreateURL("showuser", $user); if (! $embedded) { echo "<table border=2 cellpadding=0 cellspacing=2 -- GitLab