mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
pkgbase.php: Fix PHP notice
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
cc84e0b7fd
commit
1af5ba64e7
1 changed files with 2 additions and 3 deletions
|
@ -44,6 +44,7 @@ if (isset($_POST['IDs'])) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Perform package base actions. */
|
/* Perform package base actions. */
|
||||||
|
$via = isset($_POST['via']) ? $_POST['via'] : NULL;
|
||||||
$ret = false;
|
$ret = false;
|
||||||
$output = "";
|
$output = "";
|
||||||
$fragment = "";
|
$fragment = "";
|
||||||
|
@ -56,7 +57,6 @@ if (check_token()) {
|
||||||
list($ret, $output) = pkgbase_adopt($ids, true, NULL);
|
list($ret, $output) = pkgbase_adopt($ids, true, NULL);
|
||||||
} elseif (current_action("do_Disown")) {
|
} elseif (current_action("do_Disown")) {
|
||||||
if (isset($_POST['confirm'])) {
|
if (isset($_POST['confirm'])) {
|
||||||
$via = isset($_POST['via']) ? $_POST['via'] : NULL;
|
|
||||||
list($ret, $output) = pkgbase_adopt($ids, false, $via);
|
list($ret, $output) = pkgbase_adopt($ids, false, $via);
|
||||||
} else {
|
} else {
|
||||||
$output = __("The selected packages have not been disowned, check the confirmation checkbox.");
|
$output = __("The selected packages have not been disowned, check the confirmation checkbox.");
|
||||||
|
@ -68,7 +68,6 @@ if (check_token()) {
|
||||||
list($ret, $output) = pkgbase_vote($ids, false);
|
list($ret, $output) = pkgbase_vote($ids, false);
|
||||||
} elseif (current_action("do_Delete")) {
|
} elseif (current_action("do_Delete")) {
|
||||||
if (isset($_POST['confirm'])) {
|
if (isset($_POST['confirm'])) {
|
||||||
$via = isset($_POST['via']) ? $_POST['via'] : NULL;
|
|
||||||
if (!isset($_POST['merge_Into']) || empty($_POST['merge_Into'])) {
|
if (!isset($_POST['merge_Into']) || empty($_POST['merge_Into'])) {
|
||||||
list($ret, $output) = pkgbase_delete($ids, NULL, $via);
|
list($ret, $output) = pkgbase_delete($ids, NULL, $via);
|
||||||
unset($_GET['ID']);
|
unset($_GET['ID']);
|
||||||
|
@ -129,7 +128,7 @@ if (check_token()) {
|
||||||
|
|
||||||
if ($ret) {
|
if ($ret) {
|
||||||
if (current_action("do_CloseRequest") ||
|
if (current_action("do_CloseRequest") ||
|
||||||
(current_action("do_Delete") && $_POST['via'])) {
|
(current_action("do_Delete") && $via)) {
|
||||||
/* Redirect back to package request page on success. */
|
/* Redirect back to package request page on success. */
|
||||||
header('Location: ' . get_pkgreq_route());
|
header('Location: ' . get_pkgreq_route());
|
||||||
exit();
|
exit();
|
||||||
|
|
Loading…
Add table
Reference in a new issue