eliminate "Use of uninitialized value in undef operator at /etc/freeside/handler...
authorivan <ivan>
Tue, 15 Sep 2009 19:45:38 +0000 (19:45 +0000)
committerivan <ivan>
Tue, 15 Sep 2009 19:45:38 +0000 (19:45 +0000)
htetc/handler.pl

index 4ce6586..952d620 100644 (file)
@@ -76,8 +76,8 @@ sub handler
       RT::Init() if $RT::VERSION; #for lack of something else
 
       #we don't want the RT error handlers under FS
       RT::Init() if $RT::VERSION; #for lack of something else
 
       #we don't want the RT error handlers under FS
-      undef $SIG{__WARN__};
-      undef $SIG{__DIE__};
+      undef $SIG{__WARN__} if defined($SIG{__WARN__});
+      undef $SIG{__DIE__}  if defined($SIG{__DIE__} );
 
       $ah->interp($fs_interp);
 
 
       $ah->interp($fs_interp);