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

fixed bug which did not allow to query ONLY read items #9

Open
wants to merge 1 commit into
base: laravel-5
Choose a base branch
from
Open

Conversation

yuriybabenko
Copy link

@yuriybabenko yuriybabenko commented Sep 7, 2016

The original if ($params['unread']) statement meant that if $params['unread'] was set to false (ie. someone asking for read notifications), no condition would be added to the query, and the end-user would get all notifications (both read and unread). The new isset() condition addresses that issue.

It may also be worthwhile to remove the default unread parameter. That would allow the end-user to get all notifications (by not specifying it), and force them to be explicit if they only want read or unread.

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.

1 participant