]> source.dussan.org Git - nextcloud-server.git/commit
Fix serializing indexed unified search array as object 22806/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Fri, 11 Sep 2020 13:57:04 +0000 (15:57 +0200)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Fri, 11 Sep 2020 13:57:04 +0000 (15:57 +0200)
commit0022b63fe88235d66e58f233a8ee61cc2618084c
treed7f650d20637a420065e56905a2c51ff17615976
parent8ab2d5a8d95288ce6909fc7fb14b419ab15b5a86
Fix serializing indexed unified search array as object

We expect an array of results from the search provider. If the search
provider returns an array with indexes, php will serialize it as object,
not as array (to preserve the keys). The client doesn't need this info,
so we should just discard it and take the values only to always render a
JSON array.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/public/Search/SearchResult.php