diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-11-03 08:48:20 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-11-03 08:48:20 +0100 |
commit | 0557f7705ab12c84e53a5f2dc352557b908af511 (patch) | |
tree | 9034243d05d38e06b39952178ae61bd5486319cd /web/template/actions_form.php | |
parent | 168a51431bda11d2250a26e8acb8b05c0876092e (diff) | |
download | aurweb-0557f7705ab12c84e53a5f2dc352557b908af511.tar.xz |
RPC: Do not return an error on 0 results
Return an empty array and set the result count to zero instead.
Before:
$ curl 'http://localhost/rpc.php?type=search&arg=raboof'
{"type":"error","resultcount":0,"results":"No results found"}
After:
$ curl 'http://localhost/rpc.php?type=search&arg=raboof'
{"type":"search","resultcount":0,"results":[]}
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/actions_form.php')
0 files changed, 0 insertions, 0 deletions