Skip to content

Commit

Permalink
#69 Fix undefined index
Browse files Browse the repository at this point in the history
  • Loading branch information
pzs committed Jun 29, 2024
1 parent 97c882d commit fcc8dcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _PHP interfész a NAV Online számla adatszolgáltatásához_

__Letöltés:__
- Composer: [packagist.org/packages/pzs/nav-online-invoice](https://packagist.org/packages/pzs/nav-online-invoice)
- Legfrissebb verzió: [v3.0.2](https://github.com/pzs/nav-online-invoice/releases/tag/v3.0.2) ([zip](https://github.com/pzs/nav-online-invoice/archive/v3.0.2.zip))
- Legfrissebb verzió: [v3.0.3](https://github.com/pzs/nav-online-invoice/releases/tag/v3.0.3) ([zip](https://github.com/pzs/nav-online-invoice/archive/v3.0.3.zip))
- Példa fájlok: [github.com/pzs/nav-online-invoice/tree/master/examples](https://github.com/pzs/nav-online-invoice/tree/master/examples)

## v3.0-ás API támogatás
Expand Down
4 changes: 3 additions & 1 deletion src/NavOnlineInvoice/BaseExceptionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ abstract public function getResult();
public function getResultMessage() {
$result = $this->getResult();

if (empty($result["message"])) {
if (empty($result["message"]) and empty($result["errorCode"])) {
$message = "";
}elseif (empty($result["message"])) {
$message = $result["errorCode"];
} elseif (empty($result["errorCode"])) {
$message = $result["message"];
Expand Down

0 comments on commit fcc8dcf

Please sign in to comment.