From 934bc4438ce08b7a2ebcbdafb408e81589e1ff5c Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Mon, 26 Jan 2015 02:43:47 +0000 Subject: [PATCH] Gives #1 trans and id of 0. --- json/transaction.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/json/transaction.php b/json/transaction.php index 5d4b35f..cb418ff 100644 --- a/json/transaction.php +++ b/json/transaction.php @@ -98,7 +98,7 @@ $change_fund = CHANGE_FUND; // this is the first real deposit if ( ($slider_range && !$slider_range[1]["transaction_id"]) || ($slider_range && $slider_range[1]["deposited"] == "no") ) { - $fake_trans_id = $slider_range[0]["transaction_id"] - 1; + $fake_trans_id = 0; $real_trans = $slider_range[0]; $year = date("Y"); $slider_range[0] = array("transaction_id" => "$fake_trans_id","deposited" => "yes","date" => "$year-01-01 22:22:22"); @@ -110,8 +110,8 @@ $change_fund = CHANGE_FUND; // send fake data $year = date("Y"); $slider_range = array - ( array("transaction_id" => "1","deposited" => "yes","date" => "$year-01-01 22:22:22"), - array("transaction_id" => "2","deposited" => "yes","date" => "$year-01-02 22:22:22"), + ( array("transaction_id" => "0","deposited" => "yes","date" => "$year-01-01 22:22:22"), + array("transaction_id" => "1","deposited" => "yes","date" => "$year-01-02 22:22:22"), ); echo json_encode($slider_range);