diff options
author | Nicolas BERNSTEIN <alexis211@gmail.com> | 2011-09-18 13:40:44 +0200 |
---|---|---|
committer | Nicolas BERNSTEIN <alexis211@gmail.com> | 2011-09-18 13:40:44 +0200 |
commit | 8fb3d8370713f2b7b451c5ab6128736f990d62c9 (patch) | |
tree | 961423ce236a189cdb99cf30ef86ff6d719a88bc /lib/deck/rment.php | |
parent | 797a2dc9990bdd630fc1ef890ac137de074c6ff6 (diff) | |
download | Bits-8fb3d8370713f2b7b451c5ab6128736f990d62c9.tar.gz Bits-8fb3d8370713f2b7b451c5ab6128736f990d62c9.zip |
bugfixes.
Diffstat (limited to 'lib/deck/rment.php')
-rw-r--r-- | lib/deck/rment.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/deck/rment.php b/lib/deck/rment.php index 6bb8300..c4f86c8 100644 --- a/lib/deck/rment.php +++ b/lib/deck/rment.php @@ -14,7 +14,7 @@ assert_error($card && $card["deckowner"] == $user['id'], token_validate("Do you really want to delete this card ?", "view-deck-". $card['deckid']); sql("DELETE FROM cards WHERE id = $cardid"); -sql("UPDATE cards SET number = number - 1 WHERE number > " . $card['number'] . " AND deck = " . $card['deckid']); +sql("UPDATE cards SET number = number - 1 WHERE number > " . $card['number'] . " AND deck = " . $card['deckid'] . " ORDER BY number ASC"); sql("UPDATE deck_study SET need_check = 1 WHERE deck = " . $card['deckid']); header("Location: view-deck-" . $card['deckid']); die(); |