Plugin Directory

Changeset 356322

Timestamp:
03/06/2011 10:09:23 PM (13 years ago)
Author:
jghazally
Message:

Fix more wp_debug

Location:
wp-e-commerce/branches/3.8-development
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-e-commerce/branches/3.8-development/wpsc-core/wpsc-functions.php

    r355095 r356322  
    817817
    818818        // Category stuff for nice URLs
    819         if ( ('' != $q['wpsc_product_category']) && !$query->is_singular ) {
     819        if ( ) && !$query->is_singular ) {
    820820            $q['taxonomy'] = 'wpsc_product_category';
    821821            $q['term'] = $q['wpsc_product_category'];
  • wp-e-commerce/branches/3.8-development/wpsc-includes/theme.functions.php

    r353908 r356322  
    497497   
    498498    // If its the category page
    499     if( wpsc_is_viewable_taxonomy() && isset( $wp_query->posts[0] ) && $wp_query->posts[0]->post_title == $post->post_title && $wp_query->is_archive && !is_admin()){
     499    if( wpsc_is_viewable_taxonomy() && isset( $wp_query->posts[0] ) && $wp_query->posts[0]->post_title == $post->post_title && $wp_query->is_archive && !is_admin()){
    500500        $category = get_term_by('slug',$wp_query->query_vars['wpsc_product_category'],'wpsc_product_category');
    501501        remove_filter('the_title','wpsc_the_category_title');
Note: See TracChangeset for help on using the changeset viewer.