function getUserOrGroupName($id) { global $user; if (isGroupId($id)) { return sotf_Group::getGroupName($id); } else { return $user->getUsername($id); } }