Skip to content

Commit e54f5fe

Browse files
Remove broken code (#1663)
1 parent f3740f1 commit e54f5fe

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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)