Skip to content

Commit

Permalink
Merge pull request #75 from deltamualpha/master
Browse files Browse the repository at this point in the history
found another bare use of $enabled w/o isset() check first
  • Loading branch information
parisholley committed Dec 17, 2013
2 parents 0b2a78b + 06cb12e commit 9577cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp/theme/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function do_search($wp_query){
if(isset($wp_query->query_vars['category_name']) && !empty($wp_query->query_vars['category_name'])){
$cat = get_category_by_slug($wp_query->query_vars['category_name']);

if(!in_array($cat->term_id, $enabled)){
if(isset($enabled) && !in_array($cat->term_id, $enabled)){
return;
}

Expand Down

0 comments on commit 9577cc8

Please sign in to comment.