Commit 8416293f authored by Leigh B. Stoller's avatar Leigh B. Stoller

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.
parent f06f8750
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment