Changeset 2654

Show
Ignore:
Timestamp:
06/30/08 04:26:27 (12 months ago)
Author:
takayama
Message:

Fixed BugId:80318
* Sets undef instead of blank array when entries are not found

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-41/lib/MT/Template/ContextHandlers.pm

    r2644 r2654  
    81418141    my($last_day, $next_day) = ('00000000') x 2; 
    81428142    my $i = 0; 
    8143     local $ctx->{__stash}{entries} = \@entries; 
     8143    local $ctx->{__stash}{entries} = (@entries && defined $entries[0]) ? \@entries: undef; 
    81448144    my $glue = $args->{glue}; 
    81458145    my $vars = $ctx->{__stash}{vars} ||= {};