summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-10-17 06:50:28 +0000
committerthomascube <thomas@roundcube.net>2007-10-17 06:50:28 +0000
commitecd2e7961433462d01dabc38d1fd090431f70566 (patch)
tree3fa5699c577664ee4091effe69aeae4af8aeba56 /program/include/rcube_imap.inc
parent6f2a943145af2192341e5544dd37a467fbb61d6e (diff)
Make message listing less error prone
Diffstat (limited to 'program/include/rcube_imap.inc')
-rw-r--r--program/include/rcube_imap.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc
index 9eb359457..be7f44f4e 100644
--- a/program/include/rcube_imap.inc
+++ b/program/include/rcube_imap.inc
@@ -2040,6 +2040,10 @@ class rcube_imap
{
$uid = $sql_arr['uid'];
$this->cache[$cache_key][$uid] = unserialize($sql_arr['headers']);
+
+ // featch headers if unserialize failed
+ if (empty($this->cache[$cache_key][$uid]))
+ $this->cache[$cache_key][$uid] = iil_C_FetchHeader($this->conn, preg_replace('/.msg$/', '', $key), $uid, true);
}
}