From 2ea22da1056de38d254f3ce5d56bbe9d3663175e Mon Sep 17 00:00:00 2001 From: Lars Veldscholte Date: Thu, 26 Jun 2014 01:28:45 +0200 Subject: [PATCH] Remove outcommented code & fix bug with strict standards --- backlog/include/classes.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/backlog/include/classes.php b/backlog/include/classes.php index 53a2163..5dd03ed 100644 --- a/backlog/include/classes.php +++ b/backlog/include/classes.php @@ -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); } ?>