Skip to content

Commit

Permalink
Fixes #2127
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Apr 17, 2014
1 parent dc7f40a commit 4ffa86f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/fields/pick.php
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,8 @@ public function schema ( $options = null ) {
public function display ( $value = null, $name = null, $options = null, $pod = null, $id = null ) {
$fields = null;

if ( is_object( $pod ) && isset( $pod->fields ) )
$fields = array_merge( $pod->fields, $pod->object_fields );
if ( is_object( $pod ) && isset( $pod->fields ) && isset( $pod->pod_data[ 'object_fields' ] ) )
$fields = array_merge( $pod->fields, $pod->pod_data[ 'object_fields' ] );
elseif ( is_array( $pod ) && isset( $pod[ 'fields' ] ) )
$fields = array_merge( $pod[ 'fields' ], $pod[ 'object_fields' ] );

Expand Down

0 comments on commit 4ffa86f

Please sign in to comment.