From 22b2b327fee67e98573c1b51afc3c8681a7f70dc Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 21 Mar 2012 10:13:25 +0000 Subject: [PATCH] minor fix --- application/models/member.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/member.php b/application/models/member.php index cd18c623..15162dba 100755 --- a/application/models/member.php +++ b/application/models/member.php @@ -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_ASSOC); + $rs->setFetchMode(Zend_Db::FETCH_ASSOC); $row = $rs->fetch(); $scr = $this->makescr($row['username'],$row['password']);