From b93010dd8360134a55b4d3fe699ff36df9e1eec4 Mon Sep 17 00:00:00 2001 From: simo Date: Sat, 11 Jun 2005 14:37:50 +0000 Subject: Maintainer and Category only link if logged in --- web/lib/pkgfuncs.inc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 525bc67..1badb3c 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -296,7 +296,7 @@ function package_details($id=0, $SID="") { print "\n"; print "\n"; print " "; - if ($row["Location"] == "unsupported") { + if ($row["Location"] == "unsupported" and $SID) { $edit_cat = "".$row["Category"].""; $edit_cat .= "  ("; @@ -311,9 +311,13 @@ function package_details($id=0, $SID="") { print " ".__("Maintainer").": "; if ($row["MaintainerUID"]) { $maintainer = username_from_id($row["MaintainerUID"]); - print ""; - print $maintainer . ""; + if ($SID) { + print ""; + print $maintainer . ""; + } else { + print $maintainer . ""; + } } else { $maintainer = "None"; print $maintainer . ""; -- cgit v1.2.3-70-g09d2