Commit:    e0f6118a27b85395a575bb836fcce551b2575d15
Author:    Sherif Ramadan <[email protected]>         Mon, 24 Dec 2012 23:28:12 
-0500
Parents:   22207d5f2c253861868b06e97a87658a2e1dc855
Branches:  master

Link:       
http://git.php.net/?p=web/master.git;a=commitdiff;h=e0f6118a27b85395a575bb836fcce551b2575d15

Log:
Fixed wrong variable initialization bug.

Changed paths:
  M  entry/user-notes-vote.php


Diff:
diff --git a/entry/user-notes-vote.php b/entry/user-notes-vote.php
index 8ff49f1..04cfe54 100644
--- a/entry/user-notes-vote.php
+++ b/entry/user-notes-vote.php
@@ -62,7 +62,7 @@ function vote_validate_request(PDO $dbh) {
       $hostip = sprintf("%u", ip2long($_SERVER['REMOTE_ADDR']));      
   } else {
       // If the IP can't be validated use a non routable IP for loose 
validation (i.e. IPv6 and clients that couldn't send back proper IPs)
-      $ip = 0;
+      $hostip = 0;
 
   }


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to