mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Check return value of get_extended_fields()
Make sure that the get_extended_fields() invocation succeeded before merging regular and extended fields in process_query(). Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
4f662c773d
commit
15501972bc
1 changed files with 4 additions and 1 deletions
|
@ -313,7 +313,10 @@ class AurJSON {
|
|||
}
|
||||
|
||||
if ($this->version >= 2 && ($type == 'info' || $type == 'multiinfo')) {
|
||||
$row = array_merge($row, $this->get_extended_fields($row['ID'], $row['PackageBaseID']));
|
||||
$extfields = $this->get_extended_fields($row['ID'], $row['PackageBaseID']);
|
||||
if ($extfields) {
|
||||
$row = array_merge($row, $extfields);
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->version < 3) {
|
||||
|
|
Loading…
Add table
Reference in a new issue