Skip to content

Commit c336ef7

Browse files
authored
Merge pull request #2682 from MPOS/revert-2681-patch-3
Revert "add 'start' parameter to getusertransactions api page"
2 parents 64c5c99 + 1b21771 commit c336ef7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Diff for: include/pages/api/getusertransactions.inc.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,13 @@
88
$user_id = $api->checkAccess($user->checkApiKey($_REQUEST['api_key']), @$_REQUEST['id']);
99

1010
// Fetch transactions
11-
if (isset($_REQUEST['start'])) {
12-
$start = $_REQUEST['start'];
13-
} else {
14-
// start at the beginning
15-
$start = 0;
16-
}
1711
if (isset($_REQUEST['limit']) && $_REQUEST['limit'] <= 100) {
1812
$limit = $_REQUEST['limit'];
1913
} else {
2014
// Force limit
2115
$limit = 100;
2216
}
23-
24-
$data['transactions'] = $transaction->getTransactions($start, NULL, $limit, $user_id);
17+
$data['transactions'] = $transaction->getTransactions(0, NULL, $limit, $user_id);
2518

2619
// Fetch summary if enabled
2720
if (!$setting->getValue('disable_transactionsummary')) {

0 commit comments

Comments
 (0)