Skip to content

Commit 82c9918

Browse files
pashameshDaniel Tolbert
authored andcommitted
Fix tndetails (#22)
* Added support of Billing Reports * Added ability to pass request options to `file` method of bilingreports * Fixed missing `options` argument of `file` method * Added check for existance of `TelephoneNumberDetails` in response
1 parent aa5506c commit 82c9918

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Tns.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,10 @@ public function get() {
159159
public function tndetails() {
160160
$url = sprintf("%s/%s", $this->get_id(), "tndetails");
161161
$data = parent::_get($url);
162-
$data = $data['TelephoneNumberDetails'];
163-
$this->set_data($data);
162+
if (isset($data['TelephoneNumberDetails']))
163+
{
164+
$this->set_data($data['TelephoneNumberDetails']);
165+
}
164166
}
165167

166168
public function site() {

0 commit comments

Comments
 (0)