fix fetchmode error

This commit is contained in:
wlx 2012-03-21 10:11:08 +00:00
parent 6d650065d1
commit 749a1d3b10
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class member
else{
$sql = "select username,password from users where username='$uname'";
$rs = $this->db->query($sql);
$this->db->setFetchMode(Zend_Db::FETCH_ARRAY);
$this->db->setFetchMode(Zend_Db::FETCH_ASSOC);
$row = $rs->fetch();
$scr = $this->makescr($row['username'],$row['password']);