Skip to content

Commit a65dbfb

Browse files
committed
add async == true before setting callback_url
1 parent 6c5f082 commit a65dbfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ApiWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public function fetchDocument($filename = false)
295295
'doc[async]' => $this->async,
296296
);
297297

298-
if (!empty($this->callback_url)) {
298+
if (!empty($this->callback_url) && $this->async == true) {
299299
$fields['doc[callback_url]'] = $this->callback_url;
300300
}
301301

0 commit comments

Comments
 (0)