diff options
author | Mateja <mail@matejamaric.com> | 2020-10-04 04:23:15 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-10-04 04:23:15 +0200 |
commit | 825e8f41908b9a81d4bc64103ba34d441aecb9d5 (patch) | |
tree | 98813e3de3e0ac07de07457e27b4eac0b8c56dd0 /edit.php | |
parent | 06d63e029d941a7993abbfb764237a55715c64da (diff) | |
download | old-php-yota-825e8f41908b9a81d4bc64103ba34d441aecb9d5.tar.gz old-php-yota-825e8f41908b9a81d4bc64103ba34d441aecb9d5.zip |
small fix
Diffstat (limited to 'edit.php')
-rw-r--r-- | edit.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 ) { |