From 05d38a2b745b49b2fb2f11537a18fcd37b9eba55 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 6 Aug 2013 14:11:03 +0200 Subject: use a default batchsize of 20 if none given, fix #220 --- external/itemapi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'external/itemapi.php') diff --git a/external/itemapi.php b/external/itemapi.php index 83aa0f4da..0477f3a19 100644 --- a/external/itemapi.php +++ b/external/itemapi.php @@ -60,7 +60,7 @@ class ItemAPI extends Controller { ); $userId = $this->api->getUserId(); - $batchSize = (int) $this->params('batchSize'); + $batchSize = (int) $this->params('batchSize', 20); $offset = (int) $this->params('offset', 0); $type = (int) $this->params('type'); $id = (int) $this->params('id'); -- cgit v1.2.3