public static function getUserTitle($uid, $userInfo = array()) { $userTitle = ''; empty($userInfo) && ($userInfo = self::getUserInfo($uid)); if (!empty($userInfo)) { $groupId = $userInfo['groupid']; $userGroup = UserUtils::getUserGroupsByGids($groupId); $userTitle = (string) WebUtils::emptyHtml($userGroup[$groupId]['grouptitle']); } return $userTitle; }