Changeset 2576 for trunk/bp-groups/bp-groups-templatetags.php
- Timestamp:
- 02/03/2010 09:06:27 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-templatetags.php
r2550 r2576 804 804 <?php if ( $admins ) { ?> 805 805 <ul id="admins-list" class="item-list<?php if ( $admin_list ) { ?> single-line<?php } ?>"> 806 <?php foreach ( $admins as $admin ) { ?>806 <?php foreach ( (array)$admins as $admin ) { ?> 807 807 <?php if ( $admin_list ) { ?> 808 808 <li> … … 842 842 <?php if ( $group_mods ) { ?> 843 843 <ul id="mods-list" class="item-list<?php if ( $admin_list ) { ?> single-line<?php } ?>"> 844 <?php foreach ( $group_mods as $mod ) { ?>844 <?php foreach ( (array)$group_mods as $mod ) { ?> 845 845 <?php if ( $admin_list ) { ?> 846 846 <li> … … 1510 1510 $counter = 1; 1511 1511 1512 foreach ( $bp->groups->group_creation_steps as $slug => $step ) {1512 foreach ( (array)$bp->groups->group_creation_steps as $slug => $step ) { 1513 1513 $is_enabled = bp_are_previous_group_creation_steps_complete( $slug ); ?> 1514 1514 … … 1573 1573 $found = true; 1574 1574 1575 foreach ( $step_slugs as $step_slug ) {1575 foreach ( (array)$step_slugs as $step_slug ) { 1576 1576 if ( !in_array( $step_slug, $bp->groups->completed_create_steps ) ) 1577 1577 $found = false; … … 1597 1597 1598 1598 /* Get previous steps */ 1599 foreach ( $bp->groups->group_creation_steps as $slug => $name ) {1599 foreach ( (array)$bp->groups->group_creation_steps as $slug => $name ) { 1600 1600 if ( $slug == $step_slug ) 1601 1601 break; … … 1675 1675 global $bp; 1676 1676 1677 foreach ( $bp->groups->group_creation_steps as $slug => $name ) {1677 foreach ( (array)$bp->groups->group_creation_steps as $slug => $name ) { 1678 1678 if ( $slug == $bp->action_variables[1] ) 1679 1679 break;
Note: See TracChangeset
for help on using the changeset viewer.