We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da59df5 commit 8232adeCopy full SHA for 8232ade
lib/PaymentRails/ResourceCollection.php
@@ -40,9 +40,9 @@ class ResourceCollection implements Iterator
40
*/
41
public function __construct($response, $items, $pager)
42
{
43
- $this->_page = $response["meta"]["page"];
+ $this->_page = isset($response["meta"]) ? $response["meta"]["page"] : null;
44
$this->_items = $items;
45
- $this->_records = $response["meta"]["records"];
+ $this->_records = isset($response["meta"]) ? $response["meta"]["records"] : null;
46
$this->_pager = $pager;
47
$this->_index = 0;
48
if (isset($response["meta"]["pages"])) {
0 commit comments