Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

JSON Object returns now also Previous and Next in array when using: $api->parcels->get #18

@marcdelange12345

Description

@marcdelange12345

JSON Object returns now also Previous and Next in array when using: $api->parcels->get
Due to the array_shift only the first part of the array is added to the response, which is are not the Parcels anymore.

Used reversed so that after Next and Previous will be removed it also will work.

Quick and very dirty fix:
Old:
if (!empty($return_object)) { //reversed by Marc due to a bug. $response_body = array_reverse($response_body); $response_body = array_shift($response_body); }
New:
if (!empty($return_object)) { //reversed by Marc due to a change. $response_body = array_reverse($response_body); $response_body = array_shift($response_body); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions