Skip to content

Commit

Permalink
fix foreach empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
quasel committed May 18, 2017
1 parent 65a7ec6 commit f9aa565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/class-pods-page-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ private function recurse_pod_fields( $pod_name, $field_options = array(), $prefi
if ( isset ( $field_options['options'] ) ) {
foreach ( $field_options['options'] as $_option => $option_value ) {
if ( $option_value !== pods_v( $_option, $field['options'] ) ) {
continue 2; // don't check further if one option it not matched
continue 2; // don't check further if one option is not matched
}
}
}
Expand Down

0 comments on commit f9aa565

Please sign in to comment.