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

Avoid warning when a user has no favorite #685

Closed
wants to merge 1 commit into from
Closed

Conversation

gturri
Copy link
Contributor

@gturri gturri commented Nov 5, 2018

When a user has no favorite (ie: when $favoritemap is an empty array) then displaying for instance the main page, generates this warning:

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/q2a/qa-include/app/format.php on line 384

This patch avoids filling my Apache error logs with those warnings

When a user has no favorite (ie: when `$favoritemap` is an empty array) then displaying for instance the main page, generates this warning:

    Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/q2a/qa-include/app/format.php on line 384

This patch avoids filling my Apache error logs with those warnings
@gturri
Copy link
Contributor Author

gturri commented Nov 5, 2018

I've just read the contribution guidelines (yeah, I should have read them beforehand) and saw that I should have pushed on the bugfix branch... and looking at this branch I just noticed that a similar patch has already been integrated with 6890815 .
Sorry for the noise.

@gturri gturri closed this Nov 5, 2018
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

1 participant