@@ 2757-2762 (lines=6) @@ | ||
2754 | ||
2755 | $meta_cache[ $meta_k ] = $pod->field( array( 'name' => $meta_k, 'single' => $single, 'get_meta' => true ) ); |
|
2756 | ||
2757 | if ( ( !is_array( $meta_cache[ $meta_k ] ) || !isset( $meta_cache[ $meta_k ][ 0 ] ) ) ) { |
|
2758 | if ( empty( $meta_cache[ $meta_k ] ) && !is_array( $meta_cache[ $meta_k ] ) && $single ) |
|
2759 | $meta_cache[ $meta_k ] = array(); |
|
2760 | else |
|
2761 | $meta_cache[ $meta_k ] = array( $meta_cache[ $meta_k ] ); |
|
2762 | } |
|
2763 | ||
2764 | if ( in_array( $pod->fields[ $meta_k ][ 'type' ], PodsForm::tableless_field_types() ) && isset( $meta_cache[ '_pods_' . $meta_k ] ) ) |
|
2765 | unset( $meta_cache[ '_pods_' . $meta_k ] ); |
|
@@ 2775-2780 (lines=6) @@ | ||
2772 | if ( isset( $pod->fields[ $first ] ) ) { |
|
2773 | $meta_cache[ $meta_k ] = $pod->field( array( 'name' => $meta_k, 'single' => $single, 'get_meta' => true ) ); |
|
2774 | ||
2775 | if ( ( !is_array( $meta_cache[ $meta_k ] ) || !isset( $meta_cache[ $meta_k ][ 0 ] ) ) && $single ) { |
|
2776 | if ( empty( $meta_cache[ $meta_k ] ) && !is_array( $meta_cache[ $meta_k ] ) && $single ) |
|
2777 | $meta_cache[ $meta_k ] = array(); |
|
2778 | else |
|
2779 | $meta_cache[ $meta_k ] = array( $meta_cache[ $meta_k ] ); |
|
2780 | } |
|
2781 | ||
2782 | if ( in_array( $pod->fields[ $first ][ 'type' ], PodsForm::tableless_field_types() ) && isset( $meta_cache[ '_pods_' . $first ] ) ) |
|
2783 | unset( $meta_cache[ '_pods_' . $first ] ); |