Changeset 1958

Show
Ignore:
Timestamp:
04/17/08 22:49:49 (22 months ago)
Author:
bchoate
Message:

Fixed some warnings. BugId:79378

Files:
1 modified

Legend:

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

    r1956 r1958  
    72217221 
    72227222    # Get the current category 
    7223     defined (my $cat = _get_category_context($ctx)) 
    7224         or return $ctx->error($ctx->errstr); 
     7223    my $cat = _get_category_context($ctx); 
     7224    return if !defined($cat) && defined($ctx->errstr); 
    72257225    return '' if ($cat eq ''); 
    7226    
     7226 
    72277227    # The category must have a parent, otherwise return empty string 
    72287228    my $parent = $cat->parent_category or return ''; 
     
    72517251    return '' if ($cat eq ''); 
    72527252 
    7253     my $res; 
     7253    my $res = ''; 
    72547254 
    72557255    # Put together the list of parent categories