Skip to content

Conversation

@gwire
Copy link

@gwire gwire commented Jan 7, 2020

$posttypes should always be an array since a count() is applied

A request for GET /workshops/?filter=workshop&pg=0 will result in the warning

PHP Warning:  count(): Parameter must be an array or an object that implements Countable in .../wp-content/themes/virt-eu/page-roll.php on line 76

posttypes should always be an array since a count is applied
@gwire gwire changed the title make sure posttypes is an array Ensure $posttypes is an array Jan 7, 2020
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