Skip to content

Commit

Permalink
Remove outcommented code & fix bug with strict standards
Browse files Browse the repository at this point in the history
  • Loading branch information
Compizfox committed Jun 25, 2014
1 parent aa29f8c commit 2ea22da
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions backlog/include/classes.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,17 +391,14 @@ function SteamUserApiRequest() {
$stmt->bind_param("ss", $a, $steamdata->response->players[0]->avatarmedium) or die($stmt->error);
$stmt->execute() or die($stmt->error);

// $data = array();
// foreach($steamdata2->response->games as $game) {
// $data[] = array("appid" => $game->appid, "icon" => $game->img_icon_url);
// }

$a = "games";
$stmt->bind_param("ss", $a, json_encode($steamdata2->response->games)) or die($stmt->error);
$b = json_encode($steamdata2->response->games);
$stmt->bind_param("ss", $a, $b) or die($stmt->error);
$stmt->execute() or die($stmt->error);

$a = "time";
$stmt->bind_param("ss", $a, time()) or die($stmt->error);
$b = time();
$stmt->bind_param("ss", $a, $b) or die($stmt->error);
$stmt->execute() or die($stmt->error);
}
?>

0 comments on commit 2ea22da

Please sign in to comment.