Changeset 5858 for trunk/src/includes/forums/functions.php
- Timestamp:
- 07/16/2015 04:15:12 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/forums/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/forums/functions.php
r5856 r5858 1586 1586 // Get topics of forum 1587 1587 if ( empty( $topic_count ) ) { 1588 $statuses = array( bbp_get_trash_status_id(), bbp_get_spam_status_id(), bbp_get_pending_status_id() ); 1589 $post_status = "'" . implode( "','", $statuses ) . "'"; 1588 1590 $bbp_db = bbp_db(); 1589 $post_status = "'" . implode( "','", array( bbp_get_trash_status_id(), bbp_get_spam_status_id(), bbp_get_pending_status_id() ) ) . "'";1590 1591 $topic_count = $bbp_db->get_var( $bbp_db->prepare( "SELECT COUNT(ID) FROM {$bbp_db->posts} WHERE post_parent = %d AND post_status IN ( {$post_status} ) AND post_type = '%s';", $forum_id, bbp_get_topic_post_type() ) ); 1591 1592 }
Note: See TracChangeset
for help on using the changeset viewer.