Ticket #303 修改过期时间判断的逻辑错误
This commit is contained in:
parent
c7e7ae16f9
commit
4d1f68cdbf
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue