summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-05-23 21:12:53 +0200
committerAleksander Machniak <alec@alec.pl>2012-05-23 21:12:53 +0200
commite98eeafdd4115db53ea2983a7f8cce395eda880b (patch)
tree957d6f7e4a8f9f5e421e7b105efcd3baa9415abf /program
parent8e528fd7bf2e2bd1e20c7e7de5eefb26bf6b19d9 (diff)
Small code improvement
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_imap_cache.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_imap_cache.php b/program/include/rcube_imap_cache.php
index ee53dc25c..b295bac64 100644
--- a/program/include/rcube_imap_cache.php
+++ b/program/include/rcube_imap_cache.php
@@ -314,10 +314,10 @@ class rcube_imap_cache
$uid = intval($sql_arr['uid']);
$result[$uid] = $this->build_message($sql_arr);
- // save memory, we don't need message body here (?)
- $result[$uid]->body = null;
-
if (!empty($result[$uid])) {
+ // save memory, we don't need message body here (?)
+ $result[$uid]->body = null;
+
unset($msgs[$uid]);
}
}