[Rt-commit] r9596 - in rt/branches/3.7-EXPERIMENTAL: .

ruz at bestpractical.com ruz at bestpractical.com
Tue Nov 6 07:10:42 EST 2007


Author: ruz
Date: Tue Nov  6 07:10:41 2007
New Revision: 9596

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/html/REST/1.0/NoAuth/mail-gateway

Log:
 r9506 at cubic-pc (orig r9505):  sartak | 2007-10-30 19:36:24 +0300
  r44340 at onn:  sartak | 2007-10-30 12:35:54 -0400
  Bulletproof a mailgate check so it doesn't explode on decryption failure
 


Modified: rt/branches/3.7-EXPERIMENTAL/html/REST/1.0/NoAuth/mail-gateway
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/REST/1.0/NoAuth/mail-gateway	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/REST/1.0/NoAuth/mail-gateway	Tue Nov  6 07:10:41 2007
@@ -61,7 +61,7 @@
 my ( $status, $error, $Ticket ) = RT::Interface::Email::Gateway( \%ARGS );
 if ( $status == 1 ) {
   $m->out('ok');
-  if ( $Ticket->Id ) {
+  if ( $Ticket && $Ticket->Id ) {
     $m->out( 'Ticket: '  . ($Ticket->Id             || '') );
     $m->out( 'Queue: '   . ($Ticket->QueueObj->Name || '') );
     $m->out( 'Owner: '   . ($Ticket->OwnerObj->Name || '') );


More information about the Rt-commit mailing list