Skip to content

[5.x] Return null on no values instead of empty array#1289

Merged
royduin merged 1 commit into
masterfrom
Jade-GG-patch-2
May 19, 2026
Merged

[5.x] Return null on no values instead of empty array#1289
royduin merged 1 commit into
masterfrom
Jade-GG-patch-2

Conversation

@Jade-GG
Copy link
Copy Markdown
Collaborator

@Jade-GG Jade-GG commented May 18, 2026

Ran into this bug when going to a category overview page where the category had no description value. It ended up returning an empty array.

Arr::first([]) returns null, so changing this check like I've done here works correctly.

@royduin royduin merged commit b7a4989 into master May 19, 2026
16 of 18 checks passed
@royduin royduin deleted the Jade-GG-patch-2 branch May 19, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants