mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
use getCurrentDatetime() instead of CURRENT_TIMESTAMP
This commit is contained in:
parent
bdb448e7e8
commit
176fb7967b
|
@ -48,7 +48,7 @@ class SeedDMS_PasswordHistoryManager {
|
|||
|
||||
function add($user, $pwd) { /* {{{ */
|
||||
$queryStr = "INSERT INTO tblUserPasswordHistory (userID, pwd, `date`) ".
|
||||
"VALUES (".$this->db->qstr($user->getId()).", ".$this->db->qstr($pwd).", CURRENT_TIMESTAMP)";
|
||||
"VALUES (".$this->db->qstr($user->getId()).", ".$this->db->qstr($pwd).", ".$this->db->getCurrentDatetime().")";
|
||||
if (!$this->db->getResult($queryStr)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user