Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/03/2010 09:06:27 PM (15 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-forums/bp-forums-admin.php

    r2274 r2576  
    206206
    207207    // Loop through the lines and modify them
    208     foreach ( $lines as $line ) {
     208    foreach ( (array)$lines as $line ) {
    209209        if ( isset( $alterations[substr( $line, 0, 20 )] ) ) {
    210210            $alteration = $alterations[substr( $line, 0, 20 )];
     
    239239
    240240    // Write lines one by one to avoid OS specific newline hassles
    241     foreach ( $modified_lines as $modified_line ) {
     241    foreach ( (array)$modified_lines as $modified_line ) {
    242242        if ( false !== strpos( $modified_line, '?>' ) ) {
    243243            $modified_line = '?>';
Note: See TracChangeset for help on using the changeset viewer.