protected function save_edit_hub() { $hb = array(); $hb['hubicao'] = DB::escape($this->post->hubicao); $hb['hubname'] = DB::escape($this->post->hubname); $hb['lat'] = DB::escape($this->post->lat); $hb['lng'] = DB::escape($this->post->lng); $hb['pilotid'] = DB::escape($this->post->pilotid); $hb['manager'] = DB::escape($this->post->manager); $hb['image'] = DB::escape($this->post->image); $hb['hubid'] = DB::escape($this->post->hubid); HubData::save_edit_hub($hb['hubicao'], $hb['hubname'], $hb['lat'], $hb['lng'], $hb['pilotid'], $hb['manager'], $hb['image'], $hb['hubid']); $hubid = $hb['hubid']; $this->set('hubs', HubData::get_hubs($hubid)); $this->show('hub/hubs_hub.tpl'); }