Skip to content

Commit

Permalink
tr1b0t Codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
JoryHogeveen authored Nov 4, 2019
1 parent 5a9c940 commit 57fb4eb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions components/Templates/includes/functions-view_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ function frontier_decode_template( $code, $atts ) {
*/
function frontier_if_block( $atts, $code ) {

$atts = wp_parse_args( $atts, array(
$defaults = array(
'pod' => null,
'id' => null,
'field' => null,
) );
);

$atts = wp_parse_args( $atts, $defaults );

$pod = pods( $atts['pod'], $atts['id'] );

Expand Down Expand Up @@ -140,8 +142,8 @@ function frontier_if_block( $atts, $code ) {
break;
}

$entries = $field_pod->field( $field );
$rel_pod = $field_pod->fields( $field, 'pick_val' );
$entries = $field_pod->field( $field );
$rel_pod = $field_pod->fields( $field, 'pick_val' );

if ( ! $entries || ! $rel_pod ) {
// No relationships or pod name found.
Expand Down

0 comments on commit 57fb4eb

Please sign in to comment.