Remove unused globals
[squirrelmail.git] / class / mime / Rfc822Header.class.php
index 9f106d86b62d334ede869a4062f9666dc1e1a23f..921b22ccdf9fc4ba2bceef4d7942e02263347574 100644 (file)
@@ -8,7 +8,7 @@
  *
  * This contains functions needed to handle mime messages.
  *
- * $Id$
+ * @version $Id$
  * @package squirrelmail
  */
 
@@ -568,7 +568,7 @@ class Rfc822Header {
             if ($pos > 0)  {
                 $key = trim(substr($prop, 0, $pos));
                 $val = trim(substr($prop, $pos+1));
-                if ($val{0} == '"') {
+                if (strlen($val) > 0 && $val{0} == '"') {
                     $val = substr($val, 1, -1);
                 }
                 $propResultArray[$key] = $val;
@@ -753,4 +753,4 @@ class Rfc822Header {
     }
 }
 
-?>
+?>
\ No newline at end of file