Update MyOrdersTotal.php
This commit is contained in:
parent
c537e6e410
commit
7852716e3d
@ -1,11 +1,4 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Abhishek Kumar Sinha
|
||||
* Date: 9/27/2017
|
||||
* Time: 5:21 PM
|
||||
*/
|
||||
|
||||
|
||||
require_once '../includes/imp_files.php';
|
||||
|
||||
@ -15,13 +8,13 @@ if (!checkLoginStatus()) {
|
||||
|
||||
if(isset($_POST['job']) && $_POST['job'] == 'total_my_orders') {
|
||||
|
||||
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;
|
||||
}
|
||||
echo $total_my_orders = (int) $OrderClass->total_my_orders();
|
||||
echo $total_my_orders = (int) total_my_orders();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user