Permalink
Browse files

Prevent debug notice in bp_core_sort_nav_items() from $temp array not…

… existing at first pass.

git-svn-id: http://svn.buddypress.org/trunk@5923 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
  • Loading branch information...
1 parent a70745d commit 346e342761e190e68c56905d9d451794d559b6f1 johnjamesjacoby committed Mar 16, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 bp-core/bp-core-buddybar.php
@@ -198,6 +198,8 @@ function bp_core_sort_nav_items() {
if ( empty( $bp->bp_nav ) || !is_array( $bp->bp_nav ) )
return false;
+ $temp = array();
+
foreach ( (array) $bp->bp_nav as $slug => $nav_item ) {
if ( empty( $temp[$nav_item['position']]) ) {
$temp[$nav_item['position']] = $nav_item;

0 comments on commit 346e342

Please sign in to comment.