OSSP CVS Repository

ossp - Check-in [1405]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 1405
Date: 2001-Dec-06 11:13:58 (local)
2001-Dec-06 10:13:58 (UTC)
User:rse
Branch:
Comment: avoid nasty warning
Tickets:
Inspections:
Files:
ossp-pkg/shiela/shiela.pl      1.12 -> 1.13     5 inserted, 3 deleted

ossp-pkg/shiela/shiela.pl 1.12 -> 1.13

--- shiela.pl    2001/12/03 11:39:49     1.12
+++ shiela.pl    2001/12/06 10:13:58     1.13
@@ -1837,9 +1837,11 @@
                 print "cvs commit: Mailing commit message to <$logurl>\n";
                 my $sm = new Sendmail ($RT, $logurl);
                 $sm->header('Subject', $subject);
-                if ($CF->{Logging}->{Report}->{$logtype}->{Details} eq 'diff:mime') {
-                    $sm->header('Content-Type', 
-                                "multipart/mixed; boundary=\"".$RT->{mimeboundary}."\"");
+                if (defined($CF->{Logging}->{Report}->{$logtype}->{Details})) {
+                    if ($CF->{Logging}->{Report}->{$logtype}->{Details} eq 'diff:mime') {
+                        $sm->header('Content-Type', 
+                                    "multipart/mixed; boundary=\"".$RT->{mimeboundary}."\"");
+                    }
                 }
                 $sm->body($logmsg);
                 $sm->close;

CVSTrac 2.0.1