- Fixed register_globals issue. Patch by Michael.

4.2.x
Dries Buytaert 2003-05-19 21:17:30 +00:00
parent 8c037610ab
commit e99d422273
2 changed files with 2 additions and 2 deletions

View File

@ -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]])) {

View File

@ -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]])) {