/** * Delete a specific contact entry */ public function action_delete($up_id) { $player = \player::get($up_id); $contact = $player ? Contact::getContactByPlayer($this->user, $player, getval("type") == "block") : null; if (validate_sid(false) && $contact && $contact->delete()) { \ess::$b->page->add_message('<user id="' . $player->id . '" /> ble fjernet.'); } return \redirect::handle("/kontakter", \redirect::ROOT); }