diff --git a/controller/classes/Subtemplate.php b/controller/classes/Subtemplate.php index 4924d06..d734386 100644 --- a/controller/classes/Subtemplate.php +++ b/controller/classes/Subtemplate.php @@ -718,16 +718,19 @@ class Subtemplate { 'order' => 'ASC' ); - $careers = get_posts($args); + $careers = get_posts($args); $careerMarkup = ''; + if (!empty($careers)) { foreach ($careers as $career) { - $id = $career->ID; - $name = $career->post_title; - $url = get_permalink($id); + $id = $career->ID; + $name = $career->post_title; + $url = get_permalink($id); $careerMarkup .= "