Fix remainder of Ticket #7771
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Dec 2008 18:58:43 +0000 (11:58 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Dec 2008 18:58:43 +0000 (11:58 -0700)
imp/lib/Mailbox.php

index 6f2d905..cd05e02 100644 (file)
@@ -192,11 +192,11 @@ class IMP_Mailbox
                     }
 
                     if ($preview &&
-                        (($preview == 2) ||
+                        (($preview === 2) ||
                          !$GLOBALS['prefs']->getValue('preview_show_unread') ||
                          !in_array('\\seen', $v['flags']))) {
                         if (!isset($preview_info[$k])) {
-                            $imp_contents = &IMP_Contents::singleton($uid . IMP::IDX_SEP . $mailbox);
+                            $imp_contents = &IMP_Contents::singleton($k . IMP::IDX_SEP . $mbox);
                             if (is_a($imp_contents, 'PEAR_Error')) {
                                 $preview_info[$k] = array('IMPpreview' => '', 'IMPpreviewc' => false);
                             } else {