From 4d1f68cdbfdc3dc6098ea3edda2c79ee5532278e Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Mon, 12 Mar 2012 08:56:46 +0000 Subject: [PATCH] =?UTF-8?q?Ticket=20#303=20=E4=BF=AE=E6=94=B9=E8=BF=87?= =?UTF-8?q?=E6=9C=9F=E6=97=B6=E9=97=B4=E5=88=A4=E6=96=AD=E7=9A=84=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/AuthorController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/default/controllers/AuthorController.php b/application/default/controllers/AuthorController.php index 32094ffb..9929c8e4 100644 --- a/application/default/controllers/AuthorController.php +++ b/application/default/controllers/AuthorController.php @@ -710,9 +710,9 @@ body=> $sth = $this->db->prepare($sql); $ex = $sth->execute(array($uuid,$u_id,$vdcode)); }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); - $ex = $sth->execute(array($vdcode,$uuid,$u_id)); + $ex = $sth->execute(array($vdcode,'now()',$uuid,$u_id)); } if($ex)