diff --git a/modules/poll.module b/modules/poll.module
index 3c8477df50ceaeb0338993f7f6c0cec6abd5c7d1..81979e3d5ce2668c2471b3e571125823e55516f5 100644
--- a/modules/poll.module
+++ b/modules/poll.module
@@ -321,7 +321,7 @@ function poll_view_results(&$node, $main, $block, $links) {
 }
 
 function poll_view_processvote(&$node) {
-  global $pollvote;
+  $pollvote = $_POST["pollvote"];
 
   if (isset($pollvote[$node->nid]) && ($node->allowvotes == 1)) {
     if (!empty($node->choice[$pollvote[$node->nid]])) {
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 3c8477df50ceaeb0338993f7f6c0cec6abd5c7d1..81979e3d5ce2668c2471b3e571125823e55516f5 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -321,7 +321,7 @@ function poll_view_results(&$node, $main, $block, $links) {
 }
 
 function poll_view_processvote(&$node) {
-  global $pollvote;
+  $pollvote = $_POST["pollvote"];
 
   if (isset($pollvote[$node->nid]) && ($node->allowvotes == 1)) {
     if (!empty($node->choice[$pollvote[$node->nid]])) {