diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-05-13 18:36:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-05-13 18:36:38 +0000 |
commit | c2d2fb73095a32394dd95e72421aec49fa2cd6f6 (patch) | |
tree | 5d2d92a31480405b8c10c3b85927049238528242 /modules/poll/poll.module | |
parent | 13ffd8956826fec3cd9978edf73ef67d9eb8d46e (diff) | |
download | brdo-c2d2fb73095a32394dd95e72421aec49fa2cd6f6.tar.gz brdo-c2d2fb73095a32394dd95e72421aec49fa2cd6f6.tar.bz2 |
- 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.
Diffstat (limited to 'modules/poll/poll.module')
-rw-r--r-- | modules/poll/poll.module | 4 |
1 files changed, 2 insertions, 2 deletions
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; |