Skip to content

Instantly share code, notes, and snippets.

View benhartley's full-sized avatar

Benedict Hartley benhartley

View GitHub Profile
@benhartley
benhartley / active_game.php
Created October 8, 2012 14:51 — forked from jonsherrard/active_game.php
active_game.php
<?
$this->facebook_id = $facebook_id;
$active_game = array_filter($games, function($game) {
return $game->active;
});
/*
# Not sure this is needed, the game with the lowest game_id should be returned.
if (count($active_game) > 1):