From d0ebe72bcfa9ece3980a2053812fcb0f1e1e8b93 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 2 Dec 2015 16:28:14 -0500 Subject: [PATCH] fix the $deps and $cats from overpopulating --- controllers/front.php | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/front.php b/controllers/front.php index a830fb6..eee9405 100644 --- a/controllers/front.php +++ b/controllers/front.php @@ -511,6 +511,7 @@ class staffords_employment_front $current_url = esc_url(add_query_arg($wp->query_string, '', home_url($wp->request))); $iterator = 1; foreach ($jobs as $job) { + $deps = $cats = array(); $custom = get_post_custom($job->ID); $depTax = wp_get_post_terms( $job->ID, STAFFORDS_EMP_TAX_DEPARTMENTS, 'name' ); foreach ($depTax as $depTerm) { -- 2.17.1