Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/22/2010 02:10:19 PM (14 years ago)
Author:
boonebgorges
Message:

WP_DEBUG errors in bp_get_the_topic_permalink()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-templatetags.php

    r3511 r3561  
    494494        global $forum_template, $bp;
    495495
    496         if ( $forum_template->topic->object_slug )
     496        if ( !empty( $forum_template->topic->object_slug ) )
    497497            $permalink = $bp->root_domain . '/' . BP_GROUPS_SLUG . '/' . $forum_template->topic->object_slug . '/';
    498         else if ( $bp->is_single_item )
     498        else if ( !empty( $bp->is_single_item ) )
    499499            $permalink = $bp->root_domain . '/' . $bp->current_component . '/' . $bp->current_item . '/';
    500500        else
Note: See TracChangeset for help on using the changeset viewer.