Make WordPress Core


Ignore:
Timestamp:
08/06/2008 08:31:54 PM (16 years ago)
Author:
markjaquith
Message:

Cast to array when using foreach(). Props santosj (and thanks for your perseverance!). fixes #2784

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/kses.php

    r8410 r8572  
    794794    $outarray = array ();
    795795
    796     foreach ($inarray as $inkey => $inval) {
     796    foreach ( (array) $inarray as $inkey => $inval) {
    797797        $outkey = strtolower($inkey);
    798798        $outarray[$outkey] = array ();
    799799
    800         foreach ($inval as $inkey2 => $inval2) {
     800        foreach ( (array) $inval as $inkey2 => $inval2) {
    801801            $outkey2 = strtolower($inkey2);
    802802            $outarray[$outkey][$outkey2] = $inval2;
Note: See TracChangeset for help on using the changeset viewer.