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

don't over count by one.

parent 08e045d0
No related branches found
No related tags found
1 merge request!1526.6 to master
......@@ -358,6 +358,7 @@ function civicrm_api3_stripe_Listevents($params) {
$out = [];
$count = 0;
foreach($data_list['data'] as $data) {
$count++;
if ($count > $limit) {
break;
}
......@@ -449,7 +450,6 @@ function civicrm_api3_stripe_Listevents($params) {
}
}
}
$count++;
$out[] = $item;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment