Skip to content

Commit

Permalink
fix inbox API
Browse files Browse the repository at this point in the history
  • Loading branch information
soukicz committed Dec 2, 2016
1 parent c25b56a commit fc9e7df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function inbox($delete = true) {
throw new IOException('Sending error ' . (int)$response->err . ': ' . $this->getErrorMessage((int)$response->err), (int)$response->err);
}
$list = [];
foreach ($response->inbox->delivery_sms as $it) {
foreach ($response->inbox->delivery_sms->item as $it) {
if(empty($it) || strlen(trim($it->number)) === 0) {
continue;
}
Expand Down

0 comments on commit fc9e7df

Please sign in to comment.