Changeset 21719

Show
Ignore:
Timestamp:
10/21/08 00:54:55 (5 years ago)
Author:
daisuke
Message:

silence warnings

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Data-Feed/trunk/lib/Data/Feed/RSS/Entry.pm

    r21713 r21719  
    77use DateTime::Format::Mail; 
    88use DateTime::Format::W3CDTF; 
     9use Scalar::Util (); 
    910 
    1011with 'Data::Feed::Web::Entry'; 
     
    4445 
    4546    if (@_) { 
    46         $item->{description} = blessed $_[0] eq 'Data::Feed::Web::Content' ? 
     47        $item->{description} =  
     48            (Scalar::Util::blessed($_[0]) || '') eq 'Data::Feed::Web::Content' ? 
    4749            $_[0]->body : $_[0]; 
    4850        ## Because of the logic below, we need to add some dummy content, 
     
    7880 
    7981    if (@_) { 
    80         my $c = blessed $_[0] eq 'Data::Feed::Web::Content' ? $_[0]->body : $_[0]; 
     82        my $c = (Scalar::Util::blessed($_[0]) || '') eq 'Data::Feed::Web::Content' ? $_[0]->body : $_[0]; 
    8183        $item->{content}{encoded} = $c; 
    8284    }