summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Scarpino <bash.lnx@gmail.com>2008-08-26 17:49:26 +0200
committerCallan Barrett <wizzomafizzo@gmail.com>2008-08-27 15:34:24 +0200
commit52fb8550a21aeac6a6c75700c78be36de8983e15 (patch)
treed22c674f39fd27a35bf52882fe3d72515b17b8a8
parent73f807a5a86c3ebd2f2de84b721c78271bd0cace (diff)
downloadaur-52fb8550a21aeac6a6c75700c78be36de8983e15.tar.gz
aur-52fb8550a21aeac6a6c75700c78be36de8983e15.tar.xz
doesn't show disown package when already disowned
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
-rw-r--r--web/lib/pkgfuncs.inc10
1 files changed, 4 insertions, 6 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index 77b0ab11..484e5a65 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -512,14 +512,12 @@ function package_details($id=0, $SID="") {
if ($row["MaintainerUID"] == 0) {
echo "<input type='submit' class='button' name='do_Adopt'";
echo " value='".__("Adopt Packages")."'>\n";
- }
-
- if ($row["MaintainerUID"] == uid_from_sid($SID) ||
- account_from_sid($SID) == "Trusted User" ||
- account_from_sid($SID) == "Developer") {
+ } else if ($row["MaintainerUID"] == uid_from_sid($SID) ||
+ account_from_sid($SID) == "Trusted User" ||
+ account_from_sid($SID) == "Developer") {
echo "<input type='submit' class='button' name='do_Disown'";
echo " value='".__("Disown Packages")."'>\n";
- }
+ }
if (account_from_sid($SID) == "Trusted User" ||
account_from_sid($SID) == "Developer") {