Skip to content

Commit cea0783

Browse files
committed
Removed empty() check
1 parent 04abf23 commit cea0783

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

includes/class-update-field-groups.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function maybe_update_field_groups() {
8484
public function maybe_update_field_groups_from_json() {
8585

8686
// Bail early if no field groups exist.
87-
if ( empty( $this->get_json_field_groups() ) ) {
87+
if ( ! $this->get_json_field_groups() ) {
8888

8989
return;
9090
}
@@ -265,7 +265,7 @@ public function get_json_field_groups() {
265265

266266
// bail early if no field groups.
267267
if ( empty( $groups ) ) {
268-
return;
268+
return false;
269269
}
270270

271271
// find JSON field groups which have not yet been imported.
@@ -287,7 +287,7 @@ public function get_json_field_groups() {
287287

288288
// bail if no sync needed.
289289
if ( empty( $sync ) ) {
290-
return;
290+
return false;
291291
}
292292

293293
return $sync;

0 commit comments

Comments
 (0)