protected function changeActiveProfile($params = array()) { $this->initEndpoint(); $profiles_id = intval($params['profiles_id']); if (isset($_SESSION['glpiprofiles'][$profiles_id])) { return Session::changeProfile($profiles_id); } }