[imp] imp/lib/Contents.php change

Eric Rostetter eric.rostetter@physics.utexas.edu
Mon, 24 Jun 2002 21:29:12 -0500


This makes it so I can view messages again.  May or may not be correct
or useful, but at least I can see my mail again.

Index: Contents.php
===================================================================
RCS file: /repository/imp/lib/Contents.php,v
retrieving revision 1.22
diff -u -r1.22 Contents.php
--- Contents.php        25 Jun 2002 00:12:18 -0000      1.22
+++ Contents.php        25 Jun 2002 02:27:58 -0000
@@ -541,6 +541,9 @@
         global $conf;
 
         /* Don't display zero-size attachments. */
+        if (empty($mime_part)) {
+            return '';
+        }
         if (!($mime_part->getInformation('size') > 0)) {
             return '';
         }


-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

"TAD (Technology Attachment Disorder) is an unshakable, impractical devotion
to a brand, platform, product line, or programming language. It's relatively
harmless among the rank and file, but when management is afflicted the damage
can be measured in dollars. It's also contagious -- someone with sufficient
political clout can infect an entire organization."

--"Enterprise Strategies" columnist Tom Yager.