Skip to:
Content

bbPress.org

Ticket #3053: 3053.patch

File 3053.patch, 1008 bytes (added by SergeyBiryukov, 9 years ago)
  • includes/replies/functions.php

     
    437437                        if ( bbp_is_topic_trash( $topic_id ) ) {
    438438
    439439                                // Get pre_trashed_replies for topic
    440                                 $pre_trashed_replies = get_post_meta( $topic_id, '_bbp_pre_trashed_replies', true );
     440                                $pre_trashed_replies = (array) get_post_meta( $topic_id, '_bbp_pre_trashed_replies', true );
    441441
    442442                                // Add this reply to the end of the existing replies
    443443                                $pre_trashed_replies[] = $reply_id;
     
    456456                        if ( bbp_is_topic_spam( $topic_id ) ) {
    457457
    458458                                // Get pre_spammed_replies for topic
    459                                 $pre_spammed_replies = get_post_meta( $topic_id, '_bbp_pre_spammed_replies', true );
     459                                $pre_spammed_replies = (array) get_post_meta( $topic_id, '_bbp_pre_spammed_replies', true );
    460460
    461461                                // Add this reply to the end of the existing replies
    462462                                $pre_spammed_replies[] = $reply_id;