summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimo <simo>2005-06-11 16:37:50 +0200
committersimo <simo>2005-06-11 16:37:50 +0200
commitb93010dd8360134a55b4d3fe699ff36df9e1eec4 (patch)
tree21c36cafaf74716d2b930f9527b6cd3d5f3633ff
parente8f1659b876cd7a0f84777b5e4dcb51241ab7d6f (diff)
downloadaur-b93010dd8360134a55b4d3fe699ff36df9e1eec4.tar.gz
aur-b93010dd8360134a55b4d3fe699ff36df9e1eec4.tar.xz
Maintainer and Category only link if logged in
-rw-r--r--web/lib/pkgfuncs.inc12
1 files changed, 8 insertions, 4 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index 525bc67b..1badb3c6 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -296,7 +296,7 @@ function package_details($id=0, $SID="") {
print "</tr>\n";
print "<tr>\n";
print " <td colspan='2'><span class='f3'>";
- if ($row["Location"] == "unsupported") {
+ if ($row["Location"] == "unsupported" and $SID) {
$edit_cat = "<a href='/pkgedit.php?change_Category=1&ID=";
$edit_cat .= intval($_REQUEST["ID"])."'>".$row["Category"]."</a>";
$edit_cat .= " &nbsp;<span class='fix'>(";
@@ -311,9 +311,13 @@ function package_details($id=0, $SID="") {
print " <td colspan='2'><span class='f3'>".__("Maintainer").": ";
if ($row["MaintainerUID"]) {
$maintainer = username_from_id($row["MaintainerUID"]);
- print "<a href='/account.php?Action=AccountInfo&ID=";
- print $row["MaintainerUID"] . "'>";
- print $maintainer . "</a></span></td>";
+ if ($SID) {
+ print "<a href='/account.php?Action=AccountInfo&ID=";
+ print $row["MaintainerUID"] . "'>";
+ print $maintainer . "</a></span></td>";
+ } else {
+ print $maintainer . "</span></td>";
+ }
} else {
$maintainer = "None";
print $maintainer . "</span></td>";