Skip to content

Commit 6abb6d6

Browse files
[6.x] Fix updateChildPageUris empty check never short-circuiting (#14547)
1 parent 2f947bd commit 6abb6d6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Entries/Entry.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,9 @@ private function updateChildPageUris()
508508
return;
509509
}
510510

511-
if (empty($ids = $page->flattenedPages()->pluck('id'))) {
511+
$ids = $page->flattenedPages()->pluck('id');
512+
513+
if ($ids->isEmpty()) {
512514
return;
513515
}
514516

0 commit comments

Comments
 (0)