Update OrderMatcingAlgorithmAjax.php

This commit is contained in:
tripathyr 2022-04-12 16:57:24 +05:30 committed by GitHub
parent bd2609b6d9
commit 1f0ef88b62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,18 +1,9 @@
<?php
/**
* Created by PhpStorm.
* User: Abhishek Sinha
* Date: 11/15/2016
* Time: 11:13 AM
*/
require_once '../includes/imp_files.php';
if (isset($_POST['task']) && trim($_POST['task'])=='run_OrderMatcingAlgorithm') {
if (isset($OrderClass, $UserClass)) {
$refresh_orders = $OrderClass->OrderMatchingService();
$refresh_orders = OrderMatchingService();
/*If user is logged in user send him messages, if any*/
if (checkLoginStatus()) {
@ -25,7 +16,7 @@ if (isset($_POST['task']) && trim($_POST['task'])=='run_OrderMatcingAlgorithm')
if (isset($user_id)) {
$validate_user = $UserClass->check_user($user_id);
$validate_user = check_user($user_id);
if($validate_user == "" || empty($validate_user)) {
$std->error = true;
@ -45,7 +36,7 @@ if (isset($_POST['task']) && trim($_POST['task'])=='run_OrderMatcingAlgorithm')
return false;
}
}
}
} else {
return false;
}
}