bug fix: get all events of all projects
This commit is contained in:
parent
080157754b
commit
c93ddffa05
2 changed files with 2 additions and 2 deletions
|
@ -173,7 +173,7 @@ class TwingleApiCall {
|
|||
'public' => 0,
|
||||
];
|
||||
$response = $this->curlGet($url, $params);
|
||||
$finished = is_null($eventId) || count($response['data']) < $this->limit;
|
||||
$finished = ($eventId) || count($response['data']) < $this->limit;
|
||||
$offset = $offset + $this->limit;
|
||||
if ($response['data']) {
|
||||
$result = array_merge($result, $response['data']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue