Changeset 223

Show
Ignore:
Timestamp:
06/12/06 20:14:57 (2 years ago)
Author:
ogawa
Message:

fix a bug for improper couting of entries.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • TagSupplementals/trunk/TagSupplementals.pl

    r218 r223  
    2020 
    2121BEGIN { 
    22     our $VERSION = '0.01'; 
     22    our $VERSION = '0.02'; 
    2323    $plugin = __PACKAGE__->new({ 
    2424        name => 'TagSupplementals Plugin', 
     
    100100    foreach (@eids) { 
    101101        my $e = MT::Entry->load($_); 
    102         push @entries, $e if $e->status == MT::Entry::RELEASE(); 
    103         last if $lastn && $i++ >= $lastn; 
     102        if ($e->status == MT::Entry::RELEASE()) { 
     103            push @entries, $e; 
     104            $i++; 
     105            last if $lastn && $i >= $lastn; 
     106        } 
    104107    } 
    105108 
     
    123126    $res; 
    124127} 
     128 
     1291;