Update MyMessagesTotal.php
This commit is contained in:
parent
12dc47a848
commit
c537e6e410
@ -1,11 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Created by PhpStorm.
|
|
||||||
* User: Abhishek Kumar Sinha
|
|
||||||
* Date: 9/27/2017
|
|
||||||
* Time: 5:21 PM
|
|
||||||
*/
|
|
||||||
|
|
||||||
require_once '../includes/imp_files.php';
|
require_once '../includes/imp_files.php';
|
||||||
|
|
||||||
if (!checkLoginStatus()) {
|
if (!checkLoginStatus()) {
|
||||||
@ -14,13 +7,13 @@ if (!checkLoginStatus()) {
|
|||||||
|
|
||||||
if(isset($_POST['job']) && $_POST['job'] == 'total_my_messages') {
|
if(isset($_POST['job']) && $_POST['job'] == 'total_my_messages') {
|
||||||
|
|
||||||
if (isset($UserClass, $OrderClass, $user_id)) {
|
if (isset($user_id)) {
|
||||||
$validate_user = $UserClass->check_user($user_id);
|
$validate_user = check_user($user_id);
|
||||||
|
|
||||||
if($validate_user == "" || empty($validate_user)) {
|
if($validate_user == "" || empty($validate_user)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
echo $total_my_orders = (int) $OrderClass->total_my_messages();
|
echo $total_my_orders = (int) total_my_messages();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user