Show
Ignore:
Timestamp:
04/25/08 06:27:01 (19 months ago)
Author:
fumiakiy
Message:

Fixed SubCategories behavior when category filter is specified in dynamic publishing. BugId:60763

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-36/php/lib/block.mtsubcategories.php

    r1231 r2100  
    2222        # 
    2323        # sort_method takes precedence 
    24         $sort_order = $args['sort_order'] or 'ascend'; 
     24        $sort_order = isset($args['sort_order']) ? $args['sort_order'] : 'ascend'; 
    2525        $sort_method = $args['sort_method']; 
    2626 
     
    3434                require_once("MTUtil.php"); 
    3535                $current_cat = cat_path_to_category($args['category'], $blog_id); 
     36                if ( is_array( $current_cat ) ) 
     37                    $current_cat = $current_cat[0]; 
    3638            } 
    3739            if ($current_cat == NULL) {