You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The use of count() on the returned object from find() in the User model throws a fatal error since the object does not implement Countable. Find will only return a single object or NULL, neither of which implement Countable. Not sure if this is because of other changes or an upgrade to later versions of PHP, but it used to work and I only noticed recently that it started failing.
I have made and tested a fix, and created a PR for it. There are probably other places where this is failing and I intend to make more PRs later as I encounter them.
Describe the bug
The use of count() on the returned object from find() in the User model throws a fatal error since the object does not implement Countable. Find will only return a single object or NULL, neither of which implement Countable. Not sure if this is because of other changes or an upgrade to later versions of PHP, but it used to work and I only noticed recently that it started failing.
I have made and tested a fix, and created a PR for it. There are probably other places where this is failing and I intend to make more PRs later as I encounter them.
#679
Expected behavior
Page should not return "count()" error and stop. It should call releaseUserCredit without crashing.
The text was updated successfully, but these errors were encountered: