aboutsummaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/edit.php b/edit.php
index e9a5e30..713a7a5 100644
--- a/edit.php
+++ b/edit.php
@@ -67,6 +67,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_SESSION['admin']) && $_SESSI
$stmt->bindParam(':qso', $recvData.qso);
$stmt->execute();
+ $sendData->action=$recvData.action;
echo json_encode($sendData);
} else if ($recvData->action == "restore") {
@@ -97,7 +98,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_SESSION['admin']) && $_SESSI
$stmt->bindParam(':id', $recvData.id);
$stmt->execute();
- $sendData->action=$data.action;
+ $sendData->action=$recvData.action;
echo json_encode($sendData);
}
} catch ( Exception $e ) {