Permalink
Browse files

Fix the (horribly broken) entries_per_feed code.

Bump to version 0.45.
  • Loading branch information...
1 parent 20031ea commit 03b238a33c24f3249478ca9d93d2aab3e6fa3e5b @davorg committed Jan 5, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Perlanet.pm
View
@@ -25,7 +25,7 @@ use constant THIRTY_DAYS => 30 * 24 * 60 * 60;
use vars qw{$VERSION};
BEGIN {
- $VERSION = '0.44';
+ $VERSION = '0.45';
}
$XML::Atom::ForceUnicode = 1;
@@ -434,8 +434,8 @@ sub select_entries {
for my $feed (@feeds) {
my @entries = $feed->_xml_feed->entries;
if ($self->cfg->{entries_per_feed} and
- @feed_entries > $self->cfg->{entries_per_feed}) {
- $#feed_entries = $self->cfg->{entries_per_feed} - 1;
+ @entries > $self->cfg->{entries_per_feed}) {
+ $#entries = $self->cfg->{entries_per_feed} - 1;
}
push @feed_entries,

0 comments on commit 03b238a

Please sign in to comment.