Skip to content

Commit

Permalink
Merge pull request #753 from josaphatim/fixed-draft-id-on-integration
Browse files Browse the repository at this point in the history
Fixed draft id when getting uploaded files
  • Loading branch information
kroky authored Sep 1, 2023
2 parents 4e95ff4 + 378f7de commit b533fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/smtp/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public function process() {
$this->out('compose_draft', $draft, false);
$this->out('compose_draft_id', $draft_id);

if ($draft_id == 0 && array_key_exists('uid', $this->request->get)) {
if ($draft_id <= 0 && array_key_exists('uid', $this->request->get)) {
$draft_id = $this->request->get['uid'];
}

Expand Down

0 comments on commit b533fb4

Please sign in to comment.