public function rejectinvate($id) { if (!$this->itemexists($id)) { return false; } $item = $this->getitem($id); $this->setstatus($id, 'rejected'); if ($ping = tpinger::Discover($item['url'])) { $actions = TXMLRPCAction::i(); if ($actions->rejectfriend($ping, $this->profile)) { return true; } } return false; }