Show
Ignore:
Timestamp:
06/23/08 18:25:27 (5 years ago)
Author:
daisuke
Message:

make sure $index > 0

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Queue-Q4M/trunk/lib/Queue/Q4M.pm

    r14454 r14465  
    153153    $sth->finish; 
    154154 
    155     my $table = $rv > 0 ? $tables[$index - 1] : undef; 
     155    my $table = ($rv > 0 && $index > 0) ? $tables[$index - 1] : undef; 
    156156    my $res = Queue::Q4M::Result->new( 
    157157        rv         => $rv > 0,