Skip to content

Error when there are no results for availableNumbers #12

@braxter

Description

@braxter

When searching for availableNumbers, the response for an empty result is as follows:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SearchResult/>

The PHP code when requesting availableNumbers attempts to access 'ResultCount' causing an error(Notice).

    public function availableNumbers($filters=Array()){
        //...
        $url = sprintf('%s/%s', $this->account_id, 'availableNumbers');
        $data = parent::_get($url, $filters);
        $count = $data['ResultCount'];

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