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:14:02 +0200
commit7eb4f2e1be6ee02bb386731209c77a156716b292 (patch)
tree9f5f29a2eb0224e78b4433fd3a3ee059b5da9100 /program
parent43918dd25caac5e3fa6f36516e0a982e0445165d (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 1a442e06f..eb2df165f 100644
--- a/program/include/rcube_imap_cache.php
+++ b/program/include/rcube_imap_cache.php
@@ -311,10 +311,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]);
}
}