diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-06 14:11:03 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-06 14:11:03 +0200 |
commit | 05d38a2b745b49b2fb2f11537a18fcd37b9eba55 (patch) | |
tree | adaac0c9ab0f70137d7558ca07fa44a48f84e9a8 /external | |
parent | 08a281f552036a82f3a4b82bcdbd6e6fd9be4798 (diff) |
use a default batchsize of 20 if none given, fix #220
Diffstat (limited to 'external')
-rw-r--r-- | external/itemapi.php | 2 |
1 files changed, 1 insertions, 1 deletions
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'); |