Index: trunk/extensions/ExternalData/ED_Utils.php |
— | — | @@ -447,8 +447,11 @@ |
448 | 448 | */ |
449 | 449 | static function parseTree( $tree, &$retrieved_values ) { |
450 | 450 | foreach ( $tree as $key => $val ) { |
| 451 | + // TODO - this logic could probably be a little nicer. |
451 | 452 | if ( is_array( $val ) && count( $val ) > 1 ) { |
452 | 453 | self::parseTree( $val, $retrieved_values ); |
| 454 | + } elseif ( is_array( $val ) && count( $val ) == 1 && is_array( $val[0] ) ) { |
| 455 | + self::parseTree( $val[0], $retrieved_values ); |
453 | 456 | } else { |
454 | 457 | // If it's an array with just one element, |
455 | 458 | // treat it like a regular value. |