diff --git a/lib/Candidates.php b/lib/Candidates.php index 57838c3c6..5020326aa 100755 --- a/lib/Candidates.php +++ b/lib/Candidates.php @@ -345,7 +345,7 @@ public function update($candidateID, $isActive, $firstName, $middleName, $lastNa return false; } - if (!empty($emailAddress)) + if (!empty($emailAddress) && !empty($email)) { /* Send e-mail notification. */ //FIXME: Make subject configurable. diff --git a/modules/careers/CareersUI.php b/modules/careers/CareersUI.php index f592f785c..fe32b0732 100755 --- a/modules/careers/CareersUI.php +++ b/modules/careers/CareersUI.php @@ -1590,8 +1590,8 @@ private function onApplyToJobOrder($siteID, $candidateID = false) $candidateID, $candidate['isActive'] ? true : false, $firstName, $middleName, $lastName, $email, $email2, $phoneHome, $phoneCell, $phone, $address, $address2, $city, $state, $zip, $source, $keySkills, '', $employer, '', '', '', $candidate['notes'], - '', $bestTimeToCall, $automatedUser['userID'], $automatedUser['userID'], $gender, - $race, $veteran, $disability + '', $bestTimeToCall, $automatedUser['userID'], false, + '', '', $gender, $race, $veteran, $disability ); /* Update extra feilds */