mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Change behaviour of package functions to accept normal arrays
Package functions use a normal array of pkgids now and packages.php has been changed to accomodate for it Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
fb1c41c6c6
commit
cde524e175
2 changed files with 17 additions and 20 deletions
|
@ -25,10 +25,12 @@ if (isset($_COOKIE["AURSID"])) {
|
|||
}
|
||||
|
||||
# Grab the list of Package IDs to be operated on
|
||||
#
|
||||
# TODO: Convert this to a normal array of IDs to operate on and convert the
|
||||
# functions to use this format
|
||||
isset($_POST["IDs"]) ? $ids = $_POST["IDs"] : $ids = array();
|
||||
$ids = array();
|
||||
if (isset($_POST['IDs'])) {
|
||||
foreach ($_POST['IDs'] as $id => $i) {
|
||||
$ids[] = $id;
|
||||
}
|
||||
}
|
||||
|
||||
html_header($title);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue