summaryrefslogtreecommitdiffstats
path: root/application/controllers/api/v2
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-07-04 11:59:23 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-07-04 12:10:49 +0200
commit5a94df2221664f88fd3c8fc07e068fc2ce52118d (patch)
tree30958cf6e2a6f379aaefeee9b3413120e2679a4b /application/controllers/api/v2
parent56f176309428541e6868cb9c4a89f51f5cbdd2f8 (diff)
API: Fix return type of empty values in file/delete
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/api/v2')
-rw-r--r--application/controllers/api/v2/file.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/application/controllers/api/v2/file.php b/application/controllers/api/v2/file.php
index c3a42388b..15a43fc45 100644
--- a/application/controllers/api/v2/file.php
+++ b/application/controllers/api/v2/file.php
@@ -75,7 +75,11 @@ class file extends \controllers\api\api_controller {
{
$this->muser->require_access("apikey");
$ids = $this->input->post_array("ids");
- return \service\files::delete($ids);
+ $ret = \service\files::delete($ids);
+
+ $ret = ensure_json_keys_contain_objects($ret, array("errors", "deleted"));
+
+ return $ret;
}
public function create_multipaste()