fix warnings, from RT merge fallout
[freeside.git] / htetc / handler.pl
index 1dd16ec..711c32a 100644 (file)
@@ -69,6 +69,15 @@ sub handler
 
     } else {
 
+      local $SIG{__WARN__};
+      local $SIG{__DIE__};
+
+      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__};
+
       $ah->interp($fs_interp);
 
     }