mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Fix parameter processing in parse_multiinfo_args()
Fixes a regression introduced in 94aeead
(aurjson: Pass http_data array
to all functions, 2015-06-28).
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
c7fc6e6d33
commit
f5b4f7e996
1 changed files with 2 additions and 3 deletions
|
@ -324,12 +324,11 @@ class AurJSON {
|
|||
* IDs and package names are valid; sort them into the relevant arrays and
|
||||
* escape/quote the names.
|
||||
*
|
||||
* @param array $http_data Query parameters.
|
||||
* @param array $args Query parameters.
|
||||
*
|
||||
* @return mixed An array containing 'ids' and 'names'.
|
||||
*/
|
||||
private function parse_multiinfo_args($http_data) {
|
||||
$args = $http_data['arg'];
|
||||
private function parse_multiinfo_args($args) {
|
||||
if (!is_array($args)) {
|
||||
$args = array($args);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue