Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix division by zero #17

Merged
merged 1 commit into from
Aug 18, 2023
Merged

Fix division by zero #17

merged 1 commit into from
Aug 18, 2023

Conversation

wcoppens
Copy link
Contributor

In some rare cases there can be query params, however this doesn't mean there is specifically a posts_per_page var. If this happens, perPage defaults to null which causes a division by zero error in the LengthAwarePaginator of Illuminate.

In some rare cases there can be query params, however this doesn't mean there is specifically a `posts_per_page` var. If this happens, `perPage` defaults to `null` which causes a division by zero error in the LengthAwarePaginator of Illuminate.
@Log1x Log1x merged commit 65011ec into Log1x:master Aug 18, 2023
1 check passed
@Log1x
Copy link
Owner

Log1x commented Aug 18, 2023

ty

@mike-sheppard
Copy link
Sponsor Contributor

ran into this last week but hadn't had time to dig in, thanks @wcoppens & @Log1x 🙏

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.

None yet

3 participants