From c2d2fb73095a32394dd95e72421aec49fa2cd6f6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 13 May 2003 18:36:38 +0000 Subject: - Fixed a typo in the PostgreSQL database scheme. Patch by Michael Frankowski. - Fixed a typo in the MSSQL database scheme. Patch by Michael Frankowski. - Removed dependency on "register_globals = on"! Patches by Michael Frankowski. Notes: + Updated the patches to use $foo["bar"] instead of $foo['bar']. + Updated the INSTALL and CHANGELOG files as well. - Tiny improvement to the "./scripts/code-clean.sh" script. --- modules/poll/poll.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/poll/poll.module') diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 0fc1db8a9..3c8477df5 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -7,7 +7,7 @@ function poll_allowvotes(&$node) { ** We only need to determine this once for a poll, but we don't do this in ** poll_load() (i.e. for every poll that is loaded) for speed reasons. */ - global $REMOTE_ADDR, $user; + global $user; if ($node->allowvotes != -1) { return $node; @@ -20,7 +20,7 @@ function poll_allowvotes(&$node) { $id = "_". $user->uid ."_"; } else { - $id = $REMOTE_ADDR; + $id = $_SERVER["REMOTE_ADDR"]; } if (!strstr($node->voters, $id)) { $node->allowvotes = $node->active; -- cgit v1.2.3