Update tradersList.php

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

View File

@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: Abhishek Kumar Sinha
* Date: 9/27/2017
* Time: 2:41 PM
*/
require_once '../includes/imp_files.php';
@ -14,16 +8,14 @@ if (isset($_POST['task']) && trim($_POST['task'])=='loadTradersList') {
$std->traders_list = array();
$std->error = true;
if (isset($OrderClass)) {
$tradersList = $OrderClass->UserBalanceList();
$tradersList = UserBalanceList();
if (is_array($tradersList) && !empty($tradersList)) {
$std->traders_list = $tradersList;
$std->error = false;
}
}
echo json_encode($std);
} else {
return false;
}
}