Skip to content

Commit

Permalink
fix cdr content missing
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Sep 10, 2018
1 parent e251c2c commit dcbaf7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Ws/Services/ConsultCdrService.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ private function getStatusResult($method, $resultName, $ruc, $tipo, $serie, $num

$result->setCode($statusCdr->statusCode)
->setMessage($statusCdr->statusMessage)
->setCdrZip($statusCdr->content)
->setSuccess(true);

if ($statusCdr->content) {
$result->setCdrResponse($this->extractResponse($statusCdr->content));
if (isset($statusCdr->content)) {
$result->setCdrZip($statusCdr->content)
->setCdrResponse($this->extractResponse($statusCdr->content));
}
} catch (\SoapFault $e) {
$result->setError($this->getErrorFromFault($e));
Expand Down

0 comments on commit dcbaf7e

Please sign in to comment.