修复用户登录时的错误

This commit is contained in:
wlx 2011-12-11 12:25:20 +00:00
parent d563c6ae8a
commit 29a5a31bf3
1 changed files with 1 additions and 1 deletions

View File

@ -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'";