Update tradeList.php

This commit is contained in:
tripathyr 2022-04-12 17:16:58 +05:30 committed by GitHub
parent 5d9752700d
commit 34bb0cf5bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,4 @@
<?php <?php
/**
* Created by PhpStorm.
* User: Abhishek Sinha
* Date: 6/24/2017
* Time: 8:38 PM
*/
require_once '../includes/imp_files.php'; require_once '../includes/imp_files.php';
if (isset($_POST['task']) && trim($_POST['task'])=='loadTradeList') { if (isset($_POST['task']) && trim($_POST['task'])=='loadTradeList') {
@ -14,16 +7,16 @@ if (isset($_POST['task']) && trim($_POST['task'])=='loadTradeList') {
$std->trade_list = array(); $std->trade_list = array();
$std->error = true; $std->error = true;
if (isset($OrderClass, $UserClass)) {
$tradeList = $OrderClass->last_transaction_list(0,10); $tradeList = last_transaction_list(0,10);
$std->trade_list = $tradeList; $std->trade_list = $tradeList;
$std->error = false; $std->error = false;
}
echo json_encode($std); echo json_encode($std);
} else { } else {
return false; return false;
} }