[Rt-commit] r11157 - rt/branches/3.8-TESTING/lib/RT/Interface/Web

ruz at bestpractical.com ruz at bestpractical.com
Fri Mar 21 23:58:42 EDT 2008


Author: ruz
Date: Fri Mar 21 23:58:42 2008
New Revision: 11157

Modified:
   rt/branches/3.8-TESTING/lib/RT/Interface/Web/Handler.pm

Log:
* check if RT::Handle is there 

Modified: rt/branches/3.8-TESTING/lib/RT/Interface/Web/Handler.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/Interface/Web/Handler.pm	(original)
+++ rt/branches/3.8-TESTING/lib/RT/Interface/Web/Handler.pm	Fri Mar 21 23:58:42 2008
@@ -191,7 +191,7 @@
 
 sub CleanupRequest {
 
-    if ( $RT::Handle->TransactionDepth ) {
+    if ( $RT::Handle && $RT::Handle->TransactionDepth ) {
         $RT::Handle->ForceRollback;
         $RT::Logger->crit(
             "Transaction not committed. Usually indicates a software fault."


More information about the Rt-commit mailing list