Sendcloud fix error if no export documents are present
This commit is contained in:
parent
575ab86157
commit
b14265b49d
|
|
@ -126,6 +126,7 @@ class Versandart_sendcloud extends Versanddienstleister
|
||||||
$ret->Label = $this->api->DownloadDocument($doc);
|
$ret->Label = $this->api->DownloadDocument($doc);
|
||||||
|
|
||||||
$doc = $result->GetDocumentByType(Document::TYPE_CN23);
|
$doc = $result->GetDocumentByType(Document::TYPE_CN23);
|
||||||
|
if ($doc)
|
||||||
$ret->ExportDocuments = $this->api->DownloadDocument($doc);
|
$ret->ExportDocuments = $this->api->DownloadDocument($doc);
|
||||||
} else {
|
} else {
|
||||||
$ret->Errors[] = $result;
|
$ret->Errors[] = $result;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue