Could this any be possabiltily that it might be the problem, something wrong with it?
From The PilotAdmin.php
protected function ApprovePilot()
{
PilotData::AcceptPilot($this->post->id);
RanksData::CalculatePilotRanks();
$pilot = PilotData::GetPilotData($this->post->id);
# Send pilot notification
$subject = Lang::gs('email.register.accepted.subject');
$this->set('pilot', $pilot);
$message = Template::GetTemplate('email_registrationaccepted.tpl', true, true, true);
Util::SendEmail($pilot->email, $subject, $message);
LogData::addLog(Auth::$userinfo->pilotid, 'Approved '.PilotData::getPilotCode($pilot->code, $pilot->pilotid).' - ' .$pilot->firstname.' ' .$pilot->lastname);
}