From 2719ebde864c0cd41c95c21bf18a028707061011 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 6 Jun 2003 18:22:21 +0000 Subject: - Bugfix: fixed problem when register globals is turned off. Patch 0037.poll.register_globals.patch by Al. (Can't we make the result URL look nicer?) --- modules/poll.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/poll.module') diff --git a/modules/poll.module b/modules/poll.module index e52d38b43..2dcb835ee 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -169,7 +169,7 @@ function poll_link($type, $node = 0, $main) { poll_allowvotes($node); if ($node->allowvotes == 1) { - global $pollresults; + $pollresults = $_GET["pollresults"]; // Change the current URL: add/edit the value of pollresults[nid] if ($pollresults[$node->nid]) { @@ -333,7 +333,7 @@ function poll_view(&$node, $main = 0, $block = 0) { ** $pollvote[nid] - A user's vote ** $pollresults[nid] - When a user hasn't voted, he can choose to see the voting form or the results */ - global $pollresults; + $pollresults = $_GET["pollresults"]; // Make sure we have determined the 'allowvotes' flag poll_allowvotes($node); -- cgit v1.2.3