Bottom row color changed
[squirrelmail.git] / functions / mime.php
index aacc7268f47f126ad83f2a0159a4aced13cb419c..c9571e950e553a9b207f56fddcb6000523043bd4 100644 (file)
                                    $style .= $body{$i};
                                $i++;
                             }
-                            stripComments( &$i, $j, &$body );
+                            stripComments( $i, $j, $body );
                             $style = strtoupper( trim( $style ) );
                             if( $style == 'BODY' ) {
                                 // Next we look into the definitions of the body style
                                 }
                                 $styleblk .= $body{$i};
                             }
-                            stripComments( &$i, $j, &$body );
+                            stripComments( $i, $j, $body );
                             if( $body{$i} <> '>' )
                                 $i++;
                         }
                             $ret .= '<b>' . _("Title:") . " </b>$title<br>\n";
                         $ret .= "<TABLE";
                         $i += 5;
+                       if (! isset($base))
+                          $base = '';
                         $ret .= stripEvent( $i, $j, $body, $id, $base );
                         //if( $bgcolor <> '' )
                             $ret .= " bgcolor=$bgcolor";
                     default:
                         // Following tags can contain some event handler, lets search it
                         stripComments( $i, $j, $body );
+                       if (! isset($base))
+                          $base = '';
                         $ret .= stripEvent( $i, $j, $body, $id, $base ) . '>';
                         // $ret .= "<!-- $tag detected -->";
                 }
         return( $ret );
 
     }
-?>
\ No newline at end of file
+?>