| @@ 98-103 (lines=6) @@ | ||
| 95 | $redisKey .= "/order:{$orderMD5}"; |
|
| 96 | } |
|
| 97 | ||
| 98 | if (! empty($post['limit'])) { |
|
| 99 | // Enforce a max limit |
|
| 100 | if ($post['limit'] > 50) { |
|
| 101 | $post['limit'] = 50; |
|
| 102 | } |
|
| 103 | } |
|
| 104 | ||
| 105 | if (empty($post['limit']) || ! isset($post['limit'])) { |
|
| 106 | $post['limit'] = 50; |
|
| @@ 105-107 (lines=3) @@ | ||
| 102 | } |
|
| 103 | } |
|
| 104 | ||
| 105 | if (empty($post['limit']) || ! isset($post['limit'])) { |
|
| 106 | $post['limit'] = 50; |
|
| 107 | } |
|
| 108 | ||
| 109 | $redisKey .= "/limit:{$post['limit']}"; |
|
| 110 | ||
| @@ 136-138 (lines=3) @@ | ||
| 133 | $return['orderBy'] = json_decode($post['orderBy'], true); |
|
| 134 | } |
|
| 135 | ||
| 136 | if (empty($post['limit']) || ! isset($post['limit'])) { |
|
| 137 | $post['limit'] = 10; |
|
| 138 | } |
|
| 139 | ||
| 140 | if ($post['limit'] > 50) { |
|
| 141 | $post['limit'] = 50; |
|