summaryrefslogtreecommitdiffstats
path: root/web/html/packages.php
diff options
context:
space:
mode:
authorCallan Barrett <wizzomafizzo@gmail.com>2008-12-20 10:47:51 +0100
committerLoui Chang <louipc.ist@gmail.com>2008-12-20 22:58:30 +0100
commitcde524e1754923d97c953e08017170ddd5dd72b6 (patch)
treef65b5f74c4c5b843aaf3ead75ed74b51c0d4867b /web/html/packages.php
parentfb1c41c6c6572f763d8902b2358ec1b876928d28 (diff)
downloadaur-cde524e1754923d97c953e08017170ddd5dd72b6.tar.gz
aur-cde524e1754923d97c953e08017170ddd5dd72b6.tar.xz
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>
Diffstat (limited to 'web/html/packages.php')
-rw-r--r--web/html/packages.php10
1 files changed, 6 insertions, 4 deletions
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);