Skip to:
Content

bbPress.org

Changeset 5393


Ignore:
Timestamp:
06/12/2014 09:31:39 PM (5 years ago)
Author:
johnjamesjacoby
Message:

Prevent empty array value in bbp_get_reply_ancestors(). See #2617.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/functions.php

    r5392 r5393  
    11591159
    11601160            // Setup the current ID and current post as an ancestor
    1161             $id = $ancestors[] = $reply_to;
     1161            $id        = $reply_to;
     1162            $ancestors = array( $reply_to );
    11621163
    11631164            // Get parent reply
Note: See TracChangeset for help on using the changeset viewer.