From 334bb2a9b746ae064539c07fdcc27aba7e241495 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 27 Oct 2007 20:05:32 +0000 Subject: [PATCH] - show "merge by name" only to owner svn path=/trunk/boinc/; revision=13976 --- html/user/hosts_user.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/html/user/hosts_user.php b/html/user/hosts_user.php index 32e7e97262..944104f58d 100644 --- a/html/user/hosts_user.php +++ b/html/user/hosts_user.php @@ -84,7 +84,8 @@ if ($userid) { if (!$user) { error_page("No such user"); } - $caching=true; + $caching = true; + // At this point, we know that $userid, $show_all and $sort all have // valid values. // @@ -104,7 +105,7 @@ if ($userid) { $private = false; } else { $user = get_logged_in_user(); - $caching=false; + $caching = false; $userid = $user->id; page_head("Your computers"); more_or_less($show_all); @@ -133,9 +134,11 @@ if ($old_hosts>0) { more_or_less($show_all); } -echo " - Merge computers by name -"; +if (!$userid) { + echo " + Merge computers by name + "; +} if ($caching) { page_tail(true);