public function action_status() { if ($this->request->param('id') !== NULL and is_numeric($id_msg_thread = $this->request->param('id')) and is_numeric(Core::get('status'))) { if (Model_Message::status_thread($id_msg_thread, $this->user, Core::get('status'))) { Alert::set(Alert::SUCCESS, __('Done')); } } else { Alert::set(Alert::ERROR, __('Message not found')); } $this->redirect(Route::url('oc-panel', array('controller' => 'messages', 'action' => 'index'))); }