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