summaryrefslogtreecommitdiff
path: root/lib/study/brresults.php
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2013-08-12 21:17:29 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2013-08-12 21:17:29 +0200
commit8c24f8d84c338de8320596c5a9b8da72c2541080 (patch)
tree304af41ab28375dde5cd21aadaa7ed7d76a4f14e /lib/study/brresults.php
parentfac8f09c3bf40aaea5513c696af562cd9f728ea6 (diff)
downloadBits-8c24f8d84c338de8320596c5a9b8da72c2541080.tar.gz
Bits-8c24f8d84c338de8320596c5a9b8da72c2541080.zip
Small presentation changes.
Diffstat (limited to 'lib/study/brresults.php')
-rw-r--r--lib/study/brresults.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/study/brresults.php b/lib/study/brresults.php
index 9bbafac..93ebfdf 100644
--- a/lib/study/brresults.php
+++ b/lib/study/brresults.php
@@ -26,6 +26,7 @@ if ($info["bsid"] == 0) {
}
if (isset($_POST['results']) && isset($_POST['score'])) {
+ sql("UPDATE batch_study SET before_last_review = last_review WHERE id = " . $info['bsid']);
sql("INSERT INTO batch_review(user, batch, results, score, date) ".
"VALUES(" . $user['id'] . ", $batchid, '" . escs(esca($_POST['results'])) . "', " . intval($_POST['score']) . ", NOW())");
sql("UPDATE batch_study SET last_review = " . mysql_insert_id() . " WHERE id = " . $info['bsid']);