diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-29 12:41:11 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-29 12:41:11 +0000 |
| commit | 6e344231f62fb6f2ea3aba5cec1b93dee6dd13ab (patch) | |
| tree | ca8c6868750c6f5b21399943201fe183072db48d /roundcubemail/program/include/rcube_imap.php | |
| parent | f7974f31fd95c58a56e85755c4de0b85c4c53dd4 (diff) | |
- Use consistent results from some functions, code cleanup
git-svn-id: https://svn.roundcube.net/trunk@4161 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_imap.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index d08554206..028d998c3 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -2474,8 +2474,7 @@ class rcube_imap } // move messages - $move = $this->conn->move($uids, $from_mbox, $to_mbox); - $moved = !($move === false || $move < 0); + $moved = $this->conn->move($uids, $from_mbox, $to_mbox); // send expunge command in order to have the moved message // really deleted from the source mailbox @@ -2536,8 +2535,9 @@ class rcube_imap list($uids, $all_mode) = $this->_parse_uids($uids, $from_mbox); // exit if no message uids are specified - if (empty($uids)) + if (empty($uids)) { return false; + } // make sure mailbox exists if ($to_mbox != 'INBOX' && !$this->mailbox_exists($tbox, true)) { @@ -2548,8 +2548,7 @@ class rcube_imap } // copy messages - $copy = $this->conn->copy($uids, $from_mbox, $to_mbox); - $copied = !($copy === false || $copy < 0); + $copied = $this->conn->copy($uids, $from_mbox, $to_mbox); if ($copied) { $this->_clear_messagecount($to_mbox); @@ -3650,7 +3649,7 @@ class rcube_imap if (!$msg_count) return $cache_count ? -2 : 1; - if ($cache_count==$msg_count) { + if ($cache_count == $msg_count) { if ($this->skip_deleted) { $h_index = $this->conn->fetchHeaderIndex($mailbox, "1:*", 'UID', $this->skip_deleted); |
