Skip to content

Commit 02e71a5

Browse files
author
Miika Arponen
committed
Unnecessary notice removed
1 parent 0a54a8d commit 02e71a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/query.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public static function get_acf_post( $id, $args = array() ) {
125125
}
126126

127127
// A repeater field has relational posts
128-
if ( is_array( $field ) && is_array( $field[0] ) ) {
128+
if ( is_array( $field ) && count( $field ) > 0 && is_array( $field[0] ) ) {
129129

130130
// Follows the nested structure of a repeater
131131
foreach ( $field as $idx => &$repeater ) {

0 commit comments

Comments
 (0)