Changeset 5398
- Timestamp:
- 11/27/2011 09:24:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-catchuri.php
r5372 r5398 113 113 array_shift( $paths ); 114 114 115 // Reset indexes 116 $bp_uri = array_values( $bp_uri ); 117 $paths = array_values( $paths ); 118 115 119 // Unset URI indices if they intersect with the paths 116 120 foreach ( (array) $bp_uri as $key => $uri_chunk ) { 117 if ( i n_array( $uri_chunk, $paths )) {121 if ( isset( $paths[$key] ) && $uri_chunk == $paths[$key] ) { 118 122 unset( $bp_uri[$key] ); 119 123 } 120 124 } 121 125 122 126 // Reset the keys by merging with an empty array 123 127 $bp_uri = array_merge( array(), $bp_uri );
Note: See TracChangeset
for help on using the changeset viewer.