Fix bitmask check.
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 20 Nov 2008 20:49:59 +0000 (13:49 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 20 Nov 2008 20:49:59 +0000 (13:49 -0700)
imp/lib/Contents.php

index 77d7272..0fc1fa4 100644 (file)
@@ -549,7 +549,7 @@ class IMP_Contents
         }
 
         /* Strip the Attachment? */
-        if ($mask && self::SUMMARY_STRIP_LINK &&
+        if (($mask & self::SUMMARY_STRIP_LINK) &&
             !$this->isParent($id, 'message/rfc822')) {
             $url = Util::removeParameter(Horde::selfUrl(true), array('actionID', 'imapid', 'index'));
             $url = Util::addParameter($url, array('actionID' => 'strip_attachment', 'imapid' => $id, 'index' => $this->_index, 'message_token' => IMP::getRequestToken('imp.impcontents')));