You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been 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
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); }
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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); }
The text was updated successfully, but these errors were encountered: