Commit 15501972 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

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's avatarLukas Fleischer <lfleischer@archlinux.org>
parent 4f662c77
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment