summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}