[freeside-commits] freeside/FS/FS/TicketSystem RT_External.pm, 1.25.2.1, 1.25.2.2

Ivan,,, ivan at wavetail.420.am
Wed Sep 12 13:40:21 PDT 2007


Update of /home/cvs/cvsroot/freeside/FS/FS/TicketSystem
In directory wavetail:/tmp/cvs-serv15958

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	RT_External.pm 
Log Message:
don't want a fatal error when we can't fetch the name for a queue...

Index: RT_External.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/TicketSystem/RT_External.pm,v
retrieving revision 1.25.2.1
retrieving revision 1.25.2.2
diff -u -d -r1.25.2.1 -r1.25.2.2
--- RT_External.pm	2 Mar 2007 06:24:09 -0000	1.25.2.1
+++ RT_External.pm	12 Sep 2007 20:40:16 -0000	1.25.2.2
@@ -270,7 +270,8 @@
   my $sth = $dbh->prepare($sql) or die $dbh->errstr. " preparing $sql";
   $sth->execute($queueid)       or die $sth->errstr. " executing $sql";
 
-  $sth->fetchrow_arrayref->[0];
+  my $rows = $sth->fetchrow_arrayref;
+  $rows ? $rows->[0] : '';
 
 }
 



More information about the freeside-commits mailing list