protected function add_award_post() { if ($this->post->name == '' || $this->post->image == '') { $this->set('message', 'The name and image must be entered'); $this->render('core_error.tpl'); return; } $ret = AwardsData::AddAward($this->post->name, $this->post->descrip, $this->post->image); $this->set('message', 'Award Added!'); $this->render('core_success.tpl'); LogData::addLog(Auth::$userinfo->pilotid, "Added the award \"{$this->post->name}\""); }