From: Michael M Slusarz Date: Thu, 11 Dec 2008 18:58:43 +0000 (-0700) Subject: Fix remainder of Ticket #7771 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=94c4ff0b6538de6aa024f8335ee2d1e7b67e4ffb;p=horde.git Fix remainder of Ticket #7771 --- diff --git a/imp/lib/Mailbox.php b/imp/lib/Mailbox.php index 6f2d9052c..cd05e0250 100644 --- a/imp/lib/Mailbox.php +++ b/imp/lib/Mailbox.php @@ -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 {