Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #132 from zwacky/patch-1

now() replaced with time()
  • Loading branch information...
commit a4486489c74b86769fa4220850f39e5b7ed4df2b 2 parents 3bc3e7e + 3100ebe
@benedmunds benedmunds authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 models/ion_auth_model.php
View
6 models/ion_auth_model.php
@@ -600,8 +600,8 @@ public function register($username, $password, $email, $additional_data = array(
'password' => $password,
'email' => $email,
'ip_address' => sprintf('%u', ip2long($ip_address)),
- 'created_on' => now(),
- 'last_login' => now(),
+ 'created_on' => time(),
+ 'last_login' => time(),
'active' => 1
);
@@ -1066,7 +1066,7 @@ public function update_last_login($id)
$this->trigger_events('extra_where');
- $this->db->update($this->tables['users'], array('last_login' => now()), array('id' => $id));
+ $this->db->update($this->tables['users'], array('last_login' => time()), array('id' => $id));
return $this->db->affected_rows() == 1;
}
Please sign in to comment.
Something went wrong with that request. Please try again.