$UserVotes = Votes::get_user_votes($LoggedUser['ID']); $GroupVotes = Votes::get_group_votes($GroupID); $TotalVotes = $GroupVotes['Total']; $UpVotes = $GroupVotes['Ups']; $Voted = isset($UserVotes[$GroupID])?$UserVotes[$GroupID]['Type']:false; ?>