Skip to:
Content

BuddyPress.org

Ticket #2049: 2049-1.diff

File 2049-1.diff, 520 bytes (added by boonebgorges, 15 years ago)
  • bp-core/bp-core-catchuri.php

     
    9797        if ( empty( $paths[0] ) )
    9898                array_shift( $paths );
    9999
     100        $bp_uri = array_merge( array(), $bp_uri );
     101
    100102        foreach ( (array)$bp_uri as $key => $uri_chunk ) {
    101                 if ( in_array( $uri_chunk, $paths )) {
     103                if ( !empty( $paths[$key] ) && $uri_chunk == $paths[$key] ) {
    102104                        unset( $bp_uri[$key] );
    103105                }
    104106        }