Skip to content
Snippets Groups Projects
Commit 689d5d4b authored by Jamie McClelland's avatar Jamie McClelland Committed by mattwire
Browse files

ensure index is properly set, default limit to avoid integer error

parent 5bc8be63
Branches
Tags
1 merge request!1526.6 to master
......@@ -142,7 +142,7 @@ function civicrm_api3_stripe_VerifyEventType($eventType) {
function civicrm_api3_stripe_ProcessParams($params) {
$type = NULL;
$created = NULL;
$limit = NULL;
$limit = 25;
$starting_after = NULL;
$source = 'stripe';
$filter_processed = 0;
......@@ -286,7 +286,8 @@ function civicrm_api3_stripe_Listevents($params) {
// Add this charge to the list to return. Index by timestamp so we can
// sort them chronologically later.
$data_list['data'][$data->created] = $data;
$index = $data['created'];
$data_list['data'][$index] = $data;
}
// Now query stripe directly to see if there are any that system log didn't record.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment