Ticket #303 修改过期时间判断的逻辑错误

This commit is contained in:
Li Jianxuan 2012-03-12 08:56:46 +00:00
parent c7e7ae16f9
commit 4d1f68cdbf
1 changed files with 2 additions and 2 deletions

View File

@ -710,9 +710,9 @@ body=>
$sth = $this->db->prepare($sql); $sth = $this->db->prepare($sql);
$ex = $sth->execute(array($uuid,$u_id,$vdcode)); $ex = $sth->execute(array($uuid,$u_id,$vdcode));
}else{ }else{
$sql = "UPDATE mdauthor SET activation=? WHERE uuid=? AND userid=?"; $sql = "UPDATE mdauthor SET activation=?,ts_created=? WHERE uuid=? AND userid=?";
$sth = $this->db->prepare($sql); $sth = $this->db->prepare($sql);
$ex = $sth->execute(array($vdcode,$uuid,$u_id)); $ex = $sth->execute(array($vdcode,'now()',$uuid,$u_id));
} }
if($ex) if($ex)