[freeside-commits] freeside/FS/FS/TicketSystem RT_External.pm, 1.26, 1.27

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


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

Modified Files:
	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.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- RT_External.pm	2 Mar 2007 06:24:22 -0000	1.26
+++ RT_External.pm	12 Sep 2007 20:40:15 -0000	1.27
@@ -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