[PHP-WEBMASTER] [web-php] master: Remove broken code (#1663)

[email protected] (Kamil Tekiela via GitHub)
Newsgroups php.webmaster
Message-ID <[email protected]>
Author: Kamil Tekiela (kamil-tekiela)
Committer: GitHub (web-flow)
Pusher: kamil-tekiela
Date: 2025-11-27T17:25:14Z

Commit: https://github.com/php/web-php/commit/e54f5fe9b7183ec3d66927751bbb24455eb4b607
Raw diff: https://github.com/php/web-php/commit/e54f5fe9b7183ec3d66927751bbb24455eb4b607.diff

Remove broken code (#1663)

Changed paths:
  M  manual/vote-note.php


Diff:

diff --git a/manual/vote-note.php b/manual/vote-note.php
index fa8de7c7e2..d07689e8ed 100644
--- a/manual/vote-note.php
+++ b/manual/vote-note.php
@@ -57,12 +57,6 @@
         $error = "Incorrect answer! Please try again.";
       }
       else {
-        if ($_REQUEST['vote'] === 'up') {
-          $N[$_REQUEST['id']]->upvotes++;
-        }
-        elseif ($_REQUEST['vote'] === 'down') {
-          $N[$_REQUEST['id']]->downvotes++;
-        }
         $hash = substr(md5($_REQUEST['page']), 0, 16);
         $notes_file = $_SERVER['DOCUMENT_ROOT'] . "/backend/notes/" . substr($hash, 0, 2) . "/$hash";
         if (file_exists($notes_file)) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.