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

Syntax error #1

Open
GustavoIglesias opened this issue Nov 8, 2018 · 0 comments
Open

Syntax error #1

GustavoIglesias opened this issue Nov 8, 2018 · 0 comments

Comments

@GustavoIglesias
Copy link

GustavoIglesias commented Nov 8, 2018

On the function "parse_query", where you writes:
if ( $cat_id = $cat->term_id )
¿Must be?
if ( $cat_id == $cat->term_id )
It's an error: you assig in a comparison.
By the way, you must inicialize the $cat_id variable; In the code above
if(isset($q->query_vars['cat']) && !empty($q->query_vars['cat'])){
$cat_array = array_map('intval', array_map('trim', explode(',', $q->query_vars['cat'])));
}
You MUST put an ELSE to

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

No branches or pull requests

1 participant