public function action_remove_contact_department() { $deptid = $_REQUEST["deptid"]; $cid = $_REQUEST["cid"]; $contact = new ContactObj($cid); if (!$contact->remove_department($deptid)) { return print 0; } return print 1; }