From bf25ea18dff3acda5bf3b500b3d8ceab9b2af7c4 Mon Sep 17 00:00:00 2001 From: tripathyr Date: Tue, 12 Apr 2022 17:13:36 +0530 Subject: [PATCH] Update rm_root.php --- ajax/rm_root.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ajax/rm_root.php b/ajax/rm_root.php index 2a29273..ea9ad22 100644 --- a/ajax/rm_root.php +++ b/ajax/rm_root.php @@ -27,17 +27,17 @@ if (isset($_SESSION['flo_id'], $_SESSION['user_id'])) { } else { return false; } - if (isset($OrderClass, $UserClass)) { + if ($u_id_str == "off") { - $del_ord = $OrderClass->delete_orders_of_user($u_id_int); + $del_ord = delete_orders_of_user($u_id_int); } - $act_user = $UserClass->actions_user($u_id_int, $act); + $act_user = actions_user($u_id_int, $act); if ($act_user) { echo $u_id_str; } - } + return false; }