summaryrefslogtreecommitdiffstats
path: root/web/html/pkgbase.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/pkgbase.php')
-rw-r--r--web/html/pkgbase.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/web/html/pkgbase.php b/web/html/pkgbase.php
index ef9b2c4d..7c24b792 100644
--- a/web/html/pkgbase.php
+++ b/web/html/pkgbase.php
@@ -54,8 +54,13 @@ if (check_token()) {
} elseif (current_action("do_Adopt")) {
list($ret, $output) = pkgbase_adopt($ids, true, NULL);
} elseif (current_action("do_Disown")) {
- $via = isset($_POST['via']) ? $_POST['via'] : NULL;
- list($ret, $output) = pkgbase_adopt($ids, false, $via);
+ if (isset($_POST['confirm_Disown'])) {
+ $via = isset($_POST['via']) ? $_POST['via'] : NULL;
+ list($ret, $output) = pkgbase_adopt($ids, false, $via);
+ } else {
+ $output = __("The selected packages have not been disowned, check the confirmation checkbox.");
+ $ret = false;
+ }
} elseif (current_action("do_Vote")) {
list($ret, $output) = pkgbase_vote($ids, true);
} elseif (current_action("do_UnVote")) {