Skip to content

Commit 1090aa9

Browse files
authored
Update gift2all.php
1 parent fdf3205 commit 1090aa9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

settings/gift2all.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,17 @@
110110

111111

112112
if(count($clients) > 1 && $clientTotal > 0 && $clientExpiry > 0 && $clientEnable){
113-
$response = editClientTraffic($server_id, $inbound_id, $uuid, ($volume / 1024), $day);
113+
$responseEdit = editClientTraffic($server_id, $inbound_id, $uuid, ($volume / 1024), $day);
114114
$orderExistStmt = $connection->prepare("SELECT * FROM `orders_list` WHERE `server_id` = ? AND `inbound_id` = ? AND `uuid` = ?");
115115
$orderExistStmt->bind_param("iis", $server_id, $inbound_id, $uuid);
116116
}
117117
elseif($total > 0 && $expiry_time > 0 && $inboundEnable){
118-
$response = editInboundTraffic($server_id, $uuid, ($volume/1024), $day);
118+
$responseEdit = editInboundTraffic($server_id, $uuid, ($volume/1024), $day);
119119
$orderExistStmt = $connection->prepare("SELECT * FROM `orders_list` WHERE `server_id` = ? AND `inbound_id` = 0 AND `uuid` = ?");
120120
$orderExistStmt->bind_param("is", $server_id, $uuid);
121121
}
122122

123-
if(!is_null($response)){
123+
if(!is_null($responseEdit)){
124124
$orderExistStmt->execute();
125125
$orderExist = $orderExistStmt->get_result();
126126
$orderExistStmt->close();
@@ -156,8 +156,8 @@
156156
$found = true;
157157
$uuid = $clients[0]['id'];
158158
if($total > 0 && $expiry_time > 0 && $inboundEnable){
159-
$response = editInboundTraffic($server_id, $uuid, ($volume/1024), $day);
160-
if(!is_null($response)){
159+
$responseEdit = editInboundTraffic($server_id, $uuid, ($volume/1024), $day);
160+
if(!is_null($responseEdit)){
161161
$stmt = $connection->prepare("UPDATE `gift_list` SET `offset` = `offset` + 1 WHERE `id` = ?");
162162
$stmt->bind_param("i", $rowId);
163163
$stmt->execute();

0 commit comments

Comments
 (0)