Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/03/2010 09:06:27 PM (16 years ago)
Author:
apeatling
Message:

Fixes #1551 - also safeguarded all foreach loops with an array typecast.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-admin.php

    r2480 r2576  
    1111
    1212        // Settings form submitted, now save the settings.
    13         foreach ( $_POST['bp-admin'] as $key => $value ) {
     13        foreach ( (array)$_POST['bp-admin'] as $key => $value ) {
    1414
    1515            if ( function_exists( 'xprofile_install' ) ) {
     
    144144
    145145        // Settings form submitted, now save the settings.
    146         foreach ( $_POST['bp_components'] as $key => $value ) {
     146        foreach ( (array)$_POST['bp_components'] as $key => $value ) {
    147147            if ( !(int) $value )
    148148                $disabled[$key] = 1;
Note: See TracChangeset for help on using the changeset viewer.