From cde524e1754923d97c953e08017170ddd5dd72b6 Mon Sep 17 00:00:00 2001 From: Callan Barrett Date: Sat, 20 Dec 2008 18:47:51 +0900 Subject: 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 Signed-off-by: Loui Chang --- web/html/packages.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'web/html/packages.php') diff --git a/web/html/packages.php b/web/html/packages.php index ca2b26af..eb5f6647 100644 --- a/web/html/packages.php +++ b/web/html/packages.php @@ -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); -- cgit v1.2.3-24-g4f1b