diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-10-17 06:50:28 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-10-17 06:50:28 +0000 |
| commit | fb95cd9b59db49aae3bd9224327ffeb8a3e5d376 (patch) | |
| tree | 01ec77dc95e9b2c628f7ae9c48b6a230580c7c2e /roundcubemail/program/include | |
| parent | c0dbbe593d9894cd66d9d30bab2f9d3cf4b4dbe5 (diff) | |
Make message listing less error prone
git-svn-id: https://svn.roundcube.net/trunk@875 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_imap.inc b/roundcubemail/program/include/rcube_imap.inc index 9eb359457..be7f44f4e 100644 --- a/roundcubemail/program/include/rcube_imap.inc +++ b/roundcubemail/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); } } |
