Skip to content

Commit

Permalink
Fix PHP warnings with options calls
Browse files Browse the repository at this point in the history
Fixes #7170
  • Loading branch information
sc0ttkclark committed Sep 20, 2023
1 parent d42e50e commit 01357cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Templates/includes/functions-pod_reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function pq_recurse_pod_fields( $pod_name, $prefix = '', &$pods_visited = array(
$fields[] = $prefix . $name;

// Field type specific handling
if ( 'file' === $field['type'] && 'attachment' === $field['options']['file_uploader'] ) {
if ( 'file' === $field['type'] && 'attachment' === pods_v( 'file_uploader', $field ) ) {
$fields[] = $prefix . $name . '._src';
$fields[] = $prefix . $name . '._img';

Expand All @@ -100,7 +100,7 @@ function pq_recurse_pod_fields( $pod_name, $prefix = '', &$pods_visited = array(
foreach ( $image_sizes as $image_size ) {
$fields[] = "{$prefix}{$name}._src.{$image_size}";

if ( 'multi' !== $field['options']['file_format_type'] ) {
if ( 'multi' !== pods_v( 'file_format_type', $field ) ) {
$fields[] = "{$prefix}{$name}._src_relative.{$image_size}";
$fields[] = "{$prefix}{$name}._src_schemeless.{$image_size}";
}
Expand Down

0 comments on commit 01357cb

Please sign in to comment.