- Fixed register_globals issue. Patch by Michael.
parent
8c037610ab
commit
e99d422273
|
@ -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]])) {
|
||||
|
|
|
@ -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]])) {
|
||||
|
|
Loading…
Reference in New Issue