Changeset 1237

Show
Ignore:
Timestamp:
08/08/06 15:44:35
Author:
miyagawa
Message:

fixed UUV warnings in Aggregator::Simple to handle enclosures in Atom

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Aggregator/Simple.pm

    r1205 r1237  
    163163            } 
    164164        } elsif ($remote->format eq 'Atom') { 
    165             for my $link ( grep { $_->rel eq 'enclosure' } $e->{entry}->link ) { 
     165            for my $link ( grep { defined $_->rel && $_->rel eq 'enclosure' } $e->{entry}->link ) { 
    166166                my $enclosure = Plagger::Enclosure->new; 
    167167                $enclosure->url( URI->new($link->href) );