projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27df148
)
don't want a fatal error when we can't fetch the name for a queue...
author
ivan
<ivan>
Wed, 12 Sep 2007 20:40:15 +0000
(20:40 +0000)
committer
ivan
<ivan>
Wed, 12 Sep 2007 20:40:15 +0000
(20:40 +0000)
FS/FS/TicketSystem/RT_External.pm
patch
|
blob
|
history
diff --git
a/FS/FS/TicketSystem/RT_External.pm
b/FS/FS/TicketSystem/RT_External.pm
index
dda835c
..
ea9c2b5
100644
(file)
--- 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] : '';
}