@@ 2682-2687 (lines=6) @@ | ||
2679 | ||
2680 | $meta_cache[ $meta_k ] = $pod->field( array( 'name' => $meta_k, 'single' => $single, 'get_meta' => true ) ); |
|
2681 | ||
2682 | if ( ( !is_array( $meta_cache[ $meta_k ] ) || !isset( $meta_cache[ $meta_k ][ 0 ] ) ) ) { |
|
2683 | if ( empty( $meta_cache[ $meta_k ] ) && !is_array( $meta_cache[ $meta_k ] ) && $single ) |
|
2684 | $meta_cache[ $meta_k ] = array(); |
|
2685 | else |
|
2686 | $meta_cache[ $meta_k ] = array( $meta_cache[ $meta_k ] ); |
|
2687 | } |
|
2688 | ||
2689 | if ( in_array( $pod->fields[ $meta_k ][ 'type' ], PodsForm::tableless_field_types() ) && isset( $meta_cache[ '_pods_' . $meta_k ] ) ) |
|
2690 | unset( $meta_cache[ '_pods_' . $meta_k ] ); |
|
@@ 2700-2705 (lines=6) @@ | ||
2697 | if ( isset( $pod->fields[ $first ] ) ) { |
|
2698 | $meta_cache[ $meta_k ] = $pod->field( array( 'name' => $meta_k, 'single' => $single, 'get_meta' => true ) ); |
|
2699 | ||
2700 | if ( ( !is_array( $meta_cache[ $meta_k ] ) || !isset( $meta_cache[ $meta_k ][ 0 ] ) ) && $single ) { |
|
2701 | if ( empty( $meta_cache[ $meta_k ] ) && !is_array( $meta_cache[ $meta_k ] ) && $single ) |
|
2702 | $meta_cache[ $meta_k ] = array(); |
|
2703 | else |
|
2704 | $meta_cache[ $meta_k ] = array( $meta_cache[ $meta_k ] ); |
|
2705 | } |
|
2706 | ||
2707 | if ( in_array( $pod->fields[ $first ][ 'type' ], PodsForm::tableless_field_types() ) && isset( $meta_cache[ '_pods_' . $first ] ) ) |
|
2708 | unset( $meta_cache[ '_pods_' . $first ] ); |