From 455074e9cce245164b881e47874924d3050b484e Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Fri, 7 Mar 2014 12:28:34 +0100 Subject: [PATCH] Removed numbered box data --- api/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/list.php b/api/list.php index a5f7ef3..67d576e 100644 --- a/api/list.php +++ b/api/list.php @@ -8,7 +8,7 @@ $statement = $db->prepare("SELECT * FROM $table where date >= FROM_UNIXTIME(:hourago) AND remoteip = :remoteip"); $statement->execute(array( ':hourago' => $hourago, ':remoteip' => $remoteip)); - $boxes = $statement->fetchAll(); + $boxes = $statement->fetchAll(PDO::FETCH_CLASS); } catch (PDOException $e) { $response = array( "status" => "error", "msg" => $e->getMessage()." (".$e->getCode().")");