From 8c24f8d84c338de8320596c5a9b8da72c2541080 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Mon, 12 Aug 2013 21:17:29 +0200 Subject: Small presentation changes. --- lib/study/brresults.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/study/brresults.php') 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']); -- cgit v1.2.3