function getJobItemOptions($job_id, $include_disabled = TRUE) { //Don't check for current company as this needs to work when we are not fully authenticated. /* global $current_company; if ( !is_object($current_company) ) { return FALSE; } */ Debug::text('Job ID: ' . $job_id . ' Include Disabled: ' . (int) $include_disabled, __FILE__, __LINE__, __METHOD__, 10); $jilf = new JobItemListFactory(); //$jilf->getByCompanyIdAndJobId( $current_company->getId(), $job_id ); $jilf->getByJobId($job_id); $job_item_options = $jilf->getArrayByListFactory($jilf, TRUE, $include_disabled); if ($job_item_options != FALSE and is_array($job_item_options)) { return $job_item_options; } Debug::text('Returning FALSE!', __FILE__, __LINE__, __METHOD__, 10); $retarr = array('00' => '--'); return $retarr; }