summaryrefslogtreecommitdiff
path: root/lib/deck/mvent.php
diff options
context:
space:
mode:
authorNicolas BERNSTEIN <alexis211@gmail.com>2011-09-18 12:07:29 +0200
committerNicolas BERNSTEIN <alexis211@gmail.com>2011-09-18 12:07:29 +0200
commita565e649898c629874ef812a13806b1c384f68e4 (patch)
treeafc03ed12ec7e82ce17bcfff5ba76440ff43eb97 /lib/deck/mvent.php
parent8d9321225140a3db0b72796d4d0236d6cacfeb8a (diff)
downloadBits-a565e649898c629874ef812a13806b1c384f68e4.tar.gz
Bits-a565e649898c629874ef812a13806b1c384f68e4.zip
Added study program. Yay!
Diffstat (limited to 'lib/deck/mvent.php')
-rw-r--r--lib/deck/mvent.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/deck/mvent.php b/lib/deck/mvent.php
index d4571e9..10d585a 100644
--- a/lib/deck/mvent.php
+++ b/lib/deck/mvent.php
@@ -26,6 +26,7 @@ if ($pos > $mn) {
sql("UPDATE cards SET number = number - 1 WHERE number > " . $card['number']);
sql("UPDATE cards SET number = number + 1 WHERE number >= $pos");
sql("UPDATE cards SET number = $pos WHERE id = $cardid");
+ sql("UPDATE deck_study SET need_check = 1 WHERE deck = $deckid");
header("Location: view-deck-$deckid");
}