aboutsummaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-04 04:23:15 +0200
committerMateja <mail@matejamaric.com>2020-10-04 04:23:15 +0200
commit825e8f41908b9a81d4bc64103ba34d441aecb9d5 (patch)
tree98813e3de3e0ac07de07457e27b4eac0b8c56dd0 /edit.php
parent06d63e029d941a7993abbfb764237a55715c64da (diff)
downloadold-php-yota-825e8f41908b9a81d4bc64103ba34d441aecb9d5.tar.gz
old-php-yota-825e8f41908b9a81d4bc64103ba34d441aecb9d5.zip
small fix
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 ) {