Skip to content

Commit

Permalink
Revert "add 'start' parameter to getusertransactions api page"
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSerapher committed Mar 3, 2018
1 parent 64c5c99 commit 1b21771
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions include/pages/api/getusertransactions.inc.php
Expand Up @@ -8,20 +8,13 @@
$user_id = $api->checkAccess($user->checkApiKey($_REQUEST['api_key']), @$_REQUEST['id']);

// Fetch transactions
if (isset($_REQUEST['start'])) {
$start = $_REQUEST['start'];
} else {
// start at the beginning
$start = 0;
}
if (isset($_REQUEST['limit']) && $_REQUEST['limit'] <= 100) {
$limit = $_REQUEST['limit'];
} else {
// Force limit
$limit = 100;
}

$data['transactions'] = $transaction->getTransactions($start, NULL, $limit, $user_id);
$data['transactions'] = $transaction->getTransactions(0, NULL, $limit, $user_id);

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

0 comments on commit 1b21771

Please sign in to comment.