i had empty arrays in the cache, so this check wasn't sufficient to fetch and store...
authorChuck Hagenbuch <chuck@horde.org>
Mon, 19 Jan 2009 04:25:17 +0000 (23:25 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 19 Jan 2009 04:25:17 +0000 (23:25 -0500)
imp/lib/Mailbox.php

index 957c274..8479a65 100644 (file)
@@ -189,7 +189,7 @@ class IMP_Mailbox
                         (($preview === 2) ||
                          !$GLOBALS['prefs']->getValue('preview_show_unread') ||
                          !in_array('\\seen', $v['flags']))) {
-                        if (!isset($preview_info[$k])) {
+                        if (empty($preview_info[$k])) {
                             $imp_contents = IMP_Contents::singleton($k . IMP::IDX_SEP . $mbox);
                             if (is_a($imp_contents, 'PEAR_Error')) {
                                 $preview_info[$k] = array('IMPpreview' => '', 'IMPpreviewc' => false);