Skip to content

Commit

Permalink
Fix PHP fatal error on folder read-only check (#9190)
Browse files Browse the repository at this point in the history
  • Loading branch information
progsmile authored Oct 29, 2023
1 parent ce0d1ab commit 26ba211
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions program/lib/Roundcube/rcube_imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2865,11 +2865,6 @@ public function expunge_message($uids, $folder = null, $clear_cache = true)
return false;
}

if (!$this->conn->data['READ-WRITE']) {
$this->conn->setError(rcube_imap_generic::ERROR_READONLY, "Folder is read-only");
return false;
}

// CLOSE(+SELECT) should be faster than EXPUNGE
if (empty($uids) || !empty($all_mode)) {
$result = $this->conn->close();
Expand Down

0 comments on commit 26ba211

Please sign in to comment.