From 825e8f41908b9a81d4bc64103ba34d441aecb9d5 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sun, 4 Oct 2020 04:23:15 +0200 Subject: small fix --- edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'edit.php') 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 ) { -- cgit v1.2.3