Update loadMoreMyTransactions.php

This commit is contained in:
tripathyr 2022-04-12 17:02:35 +05:30 committed by GitHub
parent 072cfb046b
commit 0ce31abf3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: Abhishek Kumar Sinha
* Date: 10/6/2017
* Time: 7:09 PM
*/
require_once '../includes/imp_files.php';
if (!checkLoginStatus()) {
@ -14,8 +7,8 @@ if (!checkLoginStatus()) {
if(isset($_POST['req']) && $_POST['req'] == 'loadMoreMyTransactions') {
if (isset($UserClass, $OrderClass, $user_id)) {
$validate_user = $UserClass->check_user($user_id);
if (isset($user_id)) {
$validate_user = check_user($user_id);
if($validate_user == "" || empty($validate_user)) {
return false;
@ -30,7 +23,7 @@ if(isset($_POST['req']) && $_POST['req'] == 'loadMoreMyTransactions') {
$start = (int) $_POST['start'];
$records = (int) $_POST['records_per_page'];
$megs = $UserClass->displayUserTransaction($user_id, $start, $records);
$megs = displayUserTransaction($user_id, $start, $records);
if (is_array($megs) && !empty($megs)) {
$std->trade_list = $megs;
@ -39,4 +32,4 @@ if(isset($_POST['req']) && $_POST['req'] == 'loadMoreMyTransactions') {
}
echo json_encode($std);
}
}
}