summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorswiergot <swiergot>2005-09-02 15:27:44 +0200
committerswiergot <swiergot>2005-09-02 15:27:44 +0200
commit33132c0485ab073c9525d805a2e6e6a8405c379d (patch)
tree5b714b0ed8090144c73d29d944531e270a7fa4c8 /web/html
parent9800ebafdaa30c2946005767c9816fcab9513c31 (diff)
downloadaur-33132c0485ab073c9525d805a2e6e6a8405c379d.tar.gz
aur-33132c0485ab073c9525d805a2e6e6a8405c379d.tar.xz
allow any TU to adopt any package at any time
Diffstat (limited to 'web/html')
-rw-r--r--web/html/packages.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/html/packages.php b/web/html/packages.php
index d544e62b..28eae28f 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -308,7 +308,10 @@ if (isset($_REQUEST["do_Flag"])) {
$q = "UPDATE Packages ";
$q.= "SET ".$field." = ".uid_from_sid($_COOKIE["AURSID"])." ";
$q.= "WHERE ID IN (" . $adopt . ") ";
- $q.= "AND ".$field." = 0";
+ if ($atype == "User")
+ {
+ $q.= "AND ".$field." = 0";
+ }
db_query($q, $dbh);
}