Skip to content

Commit

Permalink
Adds success to response data
Browse files Browse the repository at this point in the history
  • Loading branch information
odannyc committed Jun 24, 2016
1 parent 46e6d12 commit 29915af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Sipit/Sipit.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,12 @@ public function getResponse()
$response['response_concat'] = $this->responseConcat;
$response['response_full'] = $parsedResponse;

if (empty($this->response)) {
$response['success'] = false;
} else {
$response['success'] = true;
}

return $response;
}
}

0 comments on commit 29915af

Please sign in to comment.