Changeset 675

Show
Ignore:
Timestamp:
05/04/06 20:23:38
Author:
miyagawa
Message:

don't set cdate if entry date is empty

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Search/Estraier.pm

    r674 r675  
    4141    $doc->add_attr('@uri' => $args->{entry}->permalink); 
    4242    $doc->add_attr('@title' => _u($args->{entry}->title)); 
    43     $doc->add_attr('@cdate' => $args->{entry}->date->format('W3CDTF'))
     43    $doc->add_attr('@cdate' => $args->{entry}->date->format('W3CDTF')) if $args->{entry}->date
    4444    $doc->add_attr('@author' => _u($args->{entry}->author)) if $args->{entry}->author; 
    4545