diff options
author | Callan Barrett <wizzomafizzo@gmail.com> | 2008-12-20 18:47:51 +0900 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2008-12-20 16:58:30 -0500 |
commit | cde524e1754923d97c953e08017170ddd5dd72b6 (patch) | |
tree | f65b5f74c4c5b843aaf3ead75ed74b51c0d4867b /web/html | |
parent | fb1c41c6c6572f763d8902b2358ec1b876928d28 (diff) | |
download | aurweb-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')
-rw-r--r-- | web/html/packages.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/web/html/packages.php b/web/html/packages.php index ca2b26a..eb5f664 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); |