From 29a5a31bf32f163c4f3ef2a1354361b0eb7a1a34 Mon Sep 17 00:00:00 2001 From: wlx Date: Sun, 11 Dec 2011 12:25:20 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=97=B6=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/AccountController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/default/controllers/AccountController.php b/application/default/controllers/AccountController.php index 1e6e11d0..7a2f0235 100755 --- a/application/default/controllers/AccountController.php +++ b/application/default/controllers/AccountController.php @@ -172,7 +172,7 @@ class AccountController extends Zend_Controller_Action // success: store database row to auth's storage $data = $authAdapter->getResultRowObject(null,'password'); $auth->getStorage()->write($data); - $db->query("update users set ts_last_login=now() where username=?",array($u)); + $db->query($db->quoteInto("update users set ts_last_login=now() where username=?",$u)); if ($this->_request->getParam('remember')) { $sql="select usertype from users where username='$u'";