diff --git a/application/models/member.php b/application/models/member.php index 4bf9e559..9cf9fab3 100755 --- a/application/models/member.php +++ b/application/models/member.php @@ -41,6 +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); $row = $rs->fetch(); $scr = $this->makescr($row['username'],$row['password']);