summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorswiergot <swiergot>2005-09-02 13:27:44 +0000
committerswiergot <swiergot>2005-09-02 13:27:44 +0000
commit33132c0485ab073c9525d805a2e6e6a8405c379d (patch)
tree5b714b0ed8090144c73d29d944531e270a7fa4c8 /web
parent9800ebafdaa30c2946005767c9816fcab9513c31 (diff)
downloadaurweb-33132c0485ab073c9525d805a2e6e6a8405c379d.tar.xz
allow any TU to adopt any package at any time
Diffstat (limited to 'web')
-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 d544e62..28eae28 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);
}