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