Skip to content

Commit

Permalink
Update UaEpp.php
Browse files Browse the repository at this point in the history
  • Loading branch information
getpinga authored Feb 18, 2023
1 parent 3faf768 commit b78c08e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Registries/UaEpp.php
Original file line number Diff line number Diff line change
Expand Up @@ -1796,10 +1796,10 @@ public function pollReq()
$r = $this->writeRequest($xml);
$code = (int)$r->response->result->attributes()->code;
$msg = (string)$r->response->result->msg;
$messages = (int)$r->response->msgQ->attributes()->count;
$last_id = (int)$r->response->msgQ->attributes()->id;
$qDate = (string)$r->response->msgQ->qDate;
$last_msg = (string)$r->response->msgQ->msg;
$messages = (int)($r->response->msgQ->attributes()->count ?? 0);
$last_id = (int)($r->response->msgQ->attributes()->id ?? 0);
$qDate = (string)($r->response->msgQ->qDate ?? '');
$last_msg = (string)($r->response->msgQ->msg ?? '');

$return = array(
'code' => $code,
Expand Down Expand Up @@ -1883,4 +1883,4 @@ public function _request_log($content)
fwrite($handle, $content);
fclose($handle);
}
}
}

0 comments on commit b78c08e

Please sign in to comment.