diff options
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/packages.php | 5 |
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); } |