From 9022f1026043345e2bea9db8477b650f6a86c401 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 12 Sep 2007 20:40:15 +0000 Subject: [PATCH] don't want a fatal error when we can't fetch the name for a queue... --- FS/FS/TicketSystem/RT_External.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FS/FS/TicketSystem/RT_External.pm b/FS/FS/TicketSystem/RT_External.pm index dda835cc1..ea9c2b5a9 100644 --- a/FS/FS/TicketSystem/RT_External.pm +++ b/FS/FS/TicketSystem/RT_External.pm @@ -270,7 +270,8 @@ sub queue { 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] : ''; } -- 2.11.0