Changeset 2058

Show
Ignore:
Timestamp:
04/24/08 21:16:05 (22 months ago)
Author:
bchoate
Message:

Fixed a warning when cache_expire_type isn't defined.

Files:
1 modified

Legend:

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

    r2052 r2058  
    559559            $template_type = 'system'; 
    560560        } 
    561         $row->{use_cache} = ( $obj->cache_expire_type != 0 ) ? 1 : 0; 
     561        $row->{use_cache} = ( ($obj->cache_expire_type || 0) != 0 ) ? 1 : 0; 
    562562        $row->{template_type} = $template_type; 
    563563        $row->{type} = 'entry' if $type eq 'individual';