Ticket #2393: 2393.patch
File 2393.patch, 707 bytes (added by , 11 years ago) |
---|
-
includes/users/template.php
1498 1498 1499 1499 // Parse arguments against default values 1500 1500 $r = bbp_parse_args( $args, array( 1501 'user_id' => bbp_get_current_user_id(),1502 'forum_id' => bbp_get_forum_id(),1501 'user_id' => 0, 1502 'forum_id' => 0, 1503 1503 'check_ancestors' => false 1504 1504 ), 'user_can_view_forum' ); 1505 1505 1506 1506 // Validate parsed values 1507 $user_id = bbp_get_user_id( $r['user_id'], false, false );1507 $user_id = bbp_get_user_id( $r['user_id'], false, true ); 1508 1508 $forum_id = bbp_get_forum_id( $r['forum_id'] ); 1509 1509 $retval = false; 1510 1510