Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #104 from Militis/c4ce65a96d88359402266be1f1b3d6e6…

…9b04983c

Fixing potential problem with using ip2long on 32 bit servers.
  • Loading branch information...
commit b5355f729dd0812cd07909c6471df26692825845 2 parents fbdbce0 + c4ce65a
@benedmunds benedmunds authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  models/ion_auth_model.php
View
2  models/ion_auth_model.php
@@ -599,7 +599,7 @@ public function register($username, $password, $email, $additional_data = false,
'username' => $username,
'password' => $password,
'email' => $email,
- 'ip_address' => ip2long($ip_address),
+ 'ip_address' => sprintf('%u', ip2long($ip_address)),
'created_on' => now(),
'last_login' => now(),
'active' => 1
Please sign in to comment.
Something went wrong with that request. Please try again.