Skip to content

Commit e31d9d3

Browse files
committed
Remove broken code
1 parent e1444a4 commit e31d9d3

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

manual/vote-note.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@
5757
$error = "Incorrect answer! Please try again.";
5858
}
5959
else {
60-
if ($_REQUEST['vote'] === 'up') {
61-
$N[$_REQUEST['id']]->upvotes++;
62-
}
63-
elseif ($_REQUEST['vote'] === 'down') {
64-
$N[$_REQUEST['id']]->downvotes++;
65-
}
6660
$hash = substr(md5($_REQUEST['page']), 0, 16);
6761
$notes_file = $_SERVER['DOCUMENT_ROOT'] . "/backend/notes/" . substr($hash, 0, 2) . "/$hash";
6862
if (file_exists($notes_file)) {

0 commit comments

Comments
 (0)