$this->content_type == '' test causes E_NOTICE in php 5.1, when
[squirrelmail.git] / class / mime / Rfc822Header.class.php
index d2b2ff1a50703d005107e2ae228da5ca6b65314d..78e8911a64e92d77370350f09a3cc81b2419240b 100644 (file)
@@ -88,7 +88,8 @@ class Rfc822Header {
      */
     var $mime = false;
     /**
-     * @var mixed
+     * Content Type object
+     * @var object
      */
     var $content_type = '';
     /**
@@ -156,7 +157,7 @@ class Rfc822Header {
                 }
             }
         }
-        if ($this->content_type == '') {
+        if (!is_object($this->content_type)) {
             $this->parseContentType('text/plain; charset=us-ascii');
         }
     }