mirror of
https://github.com/fsr/eseeva
synced 2024-11-15 00:43:12 +01:00
change pre state to issued
This commit is contained in:
parent
fd3233b5ca
commit
a9e172bc25
|
@ -23,7 +23,7 @@
|
|||
// if the submission ids of the post and the form don't match, the
|
||||
// user has refreshed the site and thus its reseted to the default state
|
||||
|
||||
if (isset($_SESSION["submissionId"]) && ($_SESSION["submissionId"] == $_POST["submissionId"]))
|
||||
if (isset($_SESSION["submissionId"]) && isset($_POST['submissionId']) && ($_SESSION["submissionId"] == $_POST["submissionId"]))
|
||||
{
|
||||
//user changes the states of some keys or deletes keys
|
||||
if (isset($_POST["changesConfirm"]))
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
if ($stmt)
|
||||
{
|
||||
$stmt->bindValue(':key', $keys[$i], SQLITE3_TEXT);
|
||||
$stmt->bindValue(':status', KEYSTATE_UNISSUED, SQLITE3_TEXT);
|
||||
$stmt->bindValue(':status', KEYSTATE_ISSUED, SQLITE3_TEXT);
|
||||
$result = $stmt->execute();
|
||||
}
|
||||
else
|
||||
|
@ -98,7 +98,7 @@
|
|||
if ($stmt)
|
||||
{
|
||||
$stmt->bindValue(':key', $keys[$i], SQLITE3_TEXT);
|
||||
$stmt->bindValue(':status', KEYSTATE_UNISSUED, SQLITE3_TEXT);
|
||||
$stmt->bindValue(':status', KEYSTATE_ISSUED, SQLITE3_TEXT);
|
||||
$result = $stmt->execute();
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue