Skip to content

Instantly share code, notes, and snippets.

@kuehltha
Created March 20, 2012 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuehltha/2140563 to your computer and use it in GitHub Desktop.
Save kuehltha/2140563 to your computer and use it in GitHub Desktop.
..\custom\include\custom_utils.php
<?php
function getActiveTeams($focus)
{
$query = "select id, name from teams where private = '0' and name <> 'Global'";
$result = $focus->db->query($query, false);
$list = array();
$list['']='';
while (($row = $focus->db->fetchByAssoc($result)) != null) {
$list[$row['id']] = $row['name'];
}
return $list;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment