Esempio n. 1
0
 protected function edit_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::EditAward($this->post->awardid, $this->post->name, $this->post->descrip, $this->post->image);
     $this->set('message', 'Award Added!');
     $this->render('core_success.tpl');
     LogData::addLog(Auth::$userinfo->pilotid, 'Edited the award "' . $this->post->name . '"');
 }