fix the $deps and $cats from overpopulating
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 2 Dec 2015 21:28:14 +0000 (16:28 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 2 Dec 2015 21:28:14 +0000 (16:28 -0500)
controllers/front.php

index a830fb6..eee9405 100644 (file)
@@ -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) {