Changeset 2064

Show
Ignore:
Timestamp:
04/24/08 21:39:02 (3 months ago)
Author:
bchoate
Message:

Fixed widget listing when a global widget exists. BugId:79495

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-36/lib/MT/CMS/Template.pm

    r2061 r2064  
    14421442    while ( my $tmpl = $iter->() ) { 
    14431443        my $blog = $blogs{ $tmpl->blog_id } ||= 
    1444           MT::Blog->load( $tmpl->blog_id ); 
    1445         return $app->error($app->translate('Can\'t load blog #[_1].', $tmpl->blog_id)) unless $blog; 
     1444          MT::Blog->load( $tmpl->blog_id ) if $tmpl->blog_id; 
    14461445 
    14471446        my $row = $tmpl->column_values; 
     
    14521451        my $published_url = $tmpl->published_url; 
    14531452        $row->{published_url} = $published_url if $published_url; 
    1454         $row->{use_cache} = ( $tmpl->cache_expire_type != 0 )  ? 1 : 0; 
     1453        $row->{use_cache} = ( ($tmpl->cache_expire_type || 0) != 0 )  ? 1 : 0; 
    14551454 
    14561455        # FIXME: enumeration of types