diff --git a/html/user/results.php b/html/user/results.php index 972d9b2e2a..d5ff3c5b80 100644 --- a/html/user/results.php +++ b/html/user/results.php @@ -17,11 +17,8 @@ if ($hostid) { $host = lookup_host($hostid); - // if (!$host || $host->userid != $user->id) { - // echo "No access"; - // exit(); - // } $type = "host"; + $link = "host $hostid"; $clause = "hostid=$hostid"; } else { if ($userid != $user->id) { @@ -29,10 +26,11 @@ exit(); } $type = "user"; + $link = "user"; $clause = "userid=$userid"; } page_head("Results for $type"); - echo "