summaryrefslogtreecommitdiff
path: root/FS/FS/TicketSystem
diff options
context:
space:
mode:
authorivan <ivan>2007-09-12 20:40:15 +0000
committerivan <ivan>2007-09-12 20:40:15 +0000
commit9022f1026043345e2bea9db8477b650f6a86c401 (patch)
tree3db20ee4b2f3f69590479d80e635ecf952d38264 /FS/FS/TicketSystem
parent27df14819d223d4f4e357754261b7493656d4b39 (diff)
don't want a fatal error when we can't fetch the name for a queue...
Diffstat (limited to 'FS/FS/TicketSystem')
-rw-r--r--FS/FS/TicketSystem/RT_External.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/TicketSystem/RT_External.pm b/FS/FS/TicketSystem/RT_External.pm
index dda835c..ea9c2b5 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] : '';
}