Skip to content
Snippets Groups Projects
Commit 3b5c8717 authored by Demian Katz's avatar Demian Katz
Browse files

Merge branch 'release-4.1'

parents 5bd98a51 5e31fbed
No related merge requests found
...@@ -107,11 +107,13 @@ class Backend extends AbstractBackend ...@@ -107,11 +107,13 @@ class Backend extends AbstractBackend
$e $e
); );
} }
$results = isset($response['data']) && is_array($response['data'])
? $response['data'] : [];
$collection = $this->createRecordCollection( $collection = $this->createRecordCollection(
[ [
'offset' => $offset, 'offset' => $offset,
'recordCount' => count($response['data']), 'recordCount' => count($results),
'data' => array_slice($response['data'], $offset, $limit) 'data' => array_slice($results, $offset, $limit)
] ]
); );
$this->injectSourceIdentifier($collection); $this->injectSourceIdentifier($collection);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment