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:
Callan Barrett 2008-12-20 18:47:51 +09:00 committed by Loui Chang
parent fb1c41c6c6
commit cde524e175
2 changed files with 17 additions and 20 deletions

View file

@ -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);