Changeset 5078
- Timestamp:
- 08/19/2013 07:10:14 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/topics/functions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/topics/functions.php
r5077 r5078 277 277 278 278 // Check a whitelist of possible topic status ID's 279 } elseif ( isset( $_POST['bbp_topic_status'] ) && in_array( $_POST['bbp_topic_status'], array_keys( bbp_get_topic_statuses() ) ) ) {279 } elseif ( !empty( $_POST['bbp_topic_status'] ) && in_array( $_POST['bbp_topic_status'], array_keys( bbp_get_topic_statuses() ) ) ) { 280 280 $topic_status = $_POST['bbp_topic_status']; 281 281 … … 613 613 614 614 // Check a whitelist of possible topic status ID's 615 } elseif ( isset( $_POST['bbp_topic_status'] ) && in_array( $_POST['bbp_topic_status'], array_keys( bbp_get_topic_statuses() ) ) ) {615 } elseif ( !empty( $_POST['bbp_topic_status'] ) && in_array( $_POST['bbp_topic_status'], array_keys( bbp_get_topic_statuses() ) ) ) { 616 616 $topic_status = $_POST['bbp_topic_status']; 617 617 … … 721 721 /** Stickies **********************************************************/ 722 722 723 if ( !empty( $_POST['bbp_stick_topic'] ) && in_array( $_POST['bbp_stick_topic'], array ( 'stick', 'super', 'unstick') ) ) {723 if ( !empty( $_POST['bbp_stick_topic'] ) && in_array( $_POST['bbp_stick_topic'], array_keys( bbp_get_topic_types() ) ) ) { 724 724 725 725 // What's the caps? … … 2130 2130 case 'bbp_toggle_topic_trash' : 2131 2131 2132 $sub_action = in_array( $_GET['sub_action'], array( 'trash', 'untrash', 'delete' ) ) ? $_GET['sub_action'] : false;2132 $sub_action = !empty( $_GET['sub_action'] ) && in_array( $_GET['sub_action'], array( 'trash', 'untrash', 'delete' ) ) ? $_GET['sub_action'] : false; 2133 2133 2134 2134 if ( empty( $sub_action ) )
Note: See TracChangeset
for help on using the changeset viewer.