Letters.pm: Minor change. Unsure if this is "the right" move, but pretty sure the...
authorJoe Atzberger <joe.atzberger@liblime.com>
Thu, 29 Nov 2007 23:43:10 +0000 (17:43 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 4 Dec 2007 21:45:51 +0000 (15:45 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Letters.pm

index 912e3ad..da0930c 100644 (file)
@@ -192,8 +192,7 @@ sub getalert {
     while ( my $line = $sth->fetchrow_hashref ) {
         push @result, $line;
     }
-    return \@result if $#result >= 0;    # return only if there is one result.
-    return;
+    return \@result;
 }
 
 =head2 findrelatedto