commit 56baf49bbcb2760e22c314e2f53ecb994693bfe9
parent 2afd00738ba240999625efc8126dc595d0eaf2b4
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Wed, 30 Nov 2016 16:19:13 +0100
Minor fixes for track-transfer
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/php/track-transfer.php b/php/track-transfer.php
@@ -5,7 +5,7 @@
include 'backend.php';
- if (!isset($_GET['wtid']) or !isset($_GET['exchange']))){
+ if (!isset($_GET['wtid']) or !isset($_GET['exchange'])){
build_error(array("body" => "Missing parameter"),
"'wtid' or 'exchange' has not been submitted",
400);
@@ -16,7 +16,7 @@
$response = get_to_backend("/track/transfer",
array("wtid" => $wtid,
"exchange" => $_GET['exchange']));
- if (!in_array(array(200, 402)) $response["status_code"]){
+ if (!in_array($response["status_code"], array(200, 402))){
echo build_error($response,
"Backend error",
$response["status_code"]);