diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-07-28 11:19:53 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2018-07-28 11:19:53 +0200 |
commit | 7982c3ff183aa985177bdaeacda4feb22a739e00 (patch) | |
tree | 728e07251072f3a1df63c017c0dce54fa1acb390 /application/api/controllers/History.php | |
parent | 2075321f6569dfa610905991b315aae1956b7f78 (diff) | |
parent | ed7e1be12d65bdb1b924c7efb6a84fd591192c6c (diff) | |
download | Shaarli-7982c3ff183aa985177bdaeacda4feb22a739e00.tar.gz Shaarli-7982c3ff183aa985177bdaeacda4feb22a739e00.tar.zst Shaarli-7982c3ff183aa985177bdaeacda4feb22a739e00.zip |
Merge tag 'v0.10.0' into latest
Release v0.10.0
Diffstat (limited to 'application/api/controllers/History.php')
-rw-r--r-- | application/api/controllers/History.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/api/controllers/History.php b/application/api/controllers/History.php index 2ff9deaf..5cc453bf 100644 --- a/application/api/controllers/History.php +++ b/application/api/controllers/History.php | |||
@@ -36,7 +36,7 @@ class History extends ApiController | |||
36 | if (empty($offset)) { | 36 | if (empty($offset)) { |
37 | $offset = 0; | 37 | $offset = 0; |
38 | } | 38 | } |
39 | else if (ctype_digit($offset)) { | 39 | elseif (ctype_digit($offset)) { |
40 | $offset = (int) $offset; | 40 | $offset = (int) $offset; |
41 | } else { | 41 | } else { |
42 | throw new ApiBadParametersException('Invalid offset'); | 42 | throw new ApiBadParametersException('Invalid offset'); |
@@ -46,7 +46,7 @@ class History extends ApiController | |||
46 | $limit = $request->getParam('limit'); | 46 | $limit = $request->getParam('limit'); |
47 | if (empty($limit)) { | 47 | if (empty($limit)) { |
48 | $limit = count($history); | 48 | $limit = count($history); |
49 | } else if (ctype_digit($limit)) { | 49 | } elseif (ctype_digit($limit)) { |
50 | $limit = (int) $limit; | 50 | $limit = (int) $limit; |
51 | } else { | 51 | } else { |
52 | throw new ApiBadParametersException('Invalid limit'); | 52 | throw new ApiBadParametersException('Invalid limit'); |