Skip to content

Commit

Permalink
Fixed issue with unsetFlag() (#99)
Browse files Browse the repository at this point in the history
Duplicated slashes were removed.
  • Loading branch information
Limman authored and Webklex committed May 19, 2018
1 parent 4152da6 commit 5bd067a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IMAP/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ public function setFlag($flag) {
*/
public function unsetFlag($flag) {
$flag = "\\".trim(is_array($flag) ? implode(" \\", $flag) : $flag);
return imap_clearflag_full($this->client->getConnection(), $this->getUid(), "\\$flag", SE_UID);
return imap_clearflag_full($this->client->getConnection(), $this->getUid(), $flag, SE_UID);
}

/**
Expand Down

0 comments on commit 5bd067a

Please sign in to comment.